diff options
author | Rose <rose@pinkro.se> | 2025-10-10 11:29:10 +0200 |
---|---|---|
committer | Rose <rose@pinkro.se> | 2025-10-10 11:29:10 +0200 |
commit | b7dfa5fdb2330f1e1cd222365055c3d45ad473be (patch) | |
tree | 78e455c8c43c6c00fc4639932ba7315e8c074cd3 /fish/Local | |
parent | 98424148dfe9ab666ee928df7565e65faa41b61b (diff) | |
download | dotfiles-b7dfa5fdb2330f1e1cd222365055c3d45ad473be.tar.gz dotfiles-b7dfa5fdb2330f1e1cd222365055c3d45ad473be.tar.bz2 |
Diffstat (limited to 'fish/Local')
-rwxr-xr-x | fish/Local/bin/git.sh | 7 | ||||
-rwxr-xr-x | fish/Local/bin/launch.sh | 3 | ||||
-rwxr-xr-x | fish/Local/bin/launchvm.sh | 3 | ||||
-rwxr-xr-x | fish/Local/bin/mediactl.sh | 19 | ||||
-rwxr-xr-x | fish/Local/bin/sysctls.sh | 7 | ||||
-rwxr-xr-x | fish/Local/bin/upload.sh | 2 | ||||
-rwxr-xr-x | fish/Local/bin/vm.sh | 11 |
7 files changed, 52 insertions, 0 deletions
diff --git a/fish/Local/bin/git.sh b/fish/Local/bin/git.sh new file mode 100755 index 0000000..2d4eb43 --- /dev/null +++ b/fish/Local/bin/git.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +if [[ "$1" == "clean" ]]; then + git clean -fdX +else + git "$@" +fi diff --git a/fish/Local/bin/launch.sh b/fish/Local/bin/launch.sh new file mode 100755 index 0000000..169b911 --- /dev/null +++ b/fish/Local/bin/launch.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +$@ 2> /dev/null > /dev/null & disown diff --git a/fish/Local/bin/launchvm.sh b/fish/Local/bin/launchvm.sh new file mode 100755 index 0000000..bd71fb4 --- /dev/null +++ b/fish/Local/bin/launchvm.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +waypipe ssh lain@ubuntu.bamboo $@ 2> /dev/null > /dev/null & disown diff --git a/fish/Local/bin/mediactl.sh b/fish/Local/bin/mediactl.sh new file mode 100755 index 0000000..40ef71a --- /dev/null +++ b/fish/Local/bin/mediactl.sh @@ -0,0 +1,19 @@ +#!/usr/bin/bash + +if [[ "$1" == "status" ]]; then + qmmp --status +elif [[ "$1" == "play" ]]; then + qmmp -p +elif [[ "$1" == "pause" ]]; then + qmmp -u +elif [[ "$1" == "prev" ]]; then + qmmp --previous +elif [[ "$1" == "next" ]]; then + qmmp --next +elif [[ "$1" == "fwd" ]]; then + qmmp --seek-fwd "$2" +elif [[ "$1" == "bwd" ]]; then + qmmp --seek-bwd "$2" +else + qmmp "$@" +fi diff --git a/fish/Local/bin/sysctls.sh b/fish/Local/bin/sysctls.sh new file mode 100755 index 0000000..ab72c13 --- /dev/null +++ b/fish/Local/bin/sysctls.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +if [[ "$1" == "poweroff" ]]; then + doas poweroff +elif [[ "$1" == "reboot" ]]; then + doas reboot +fi diff --git a/fish/Local/bin/upload.sh b/fish/Local/bin/upload.sh new file mode 100755 index 0000000..1ec895a --- /dev/null +++ b/fish/Local/bin/upload.sh @@ -0,0 +1,2 @@ +#!/bin/bash +curl -F'file=@${1}' https://0x0.st diff --git a/fish/Local/bin/vm.sh b/fish/Local/bin/vm.sh new file mode 100755 index 0000000..d56d201 --- /dev/null +++ b/fish/Local/bin/vm.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +if [[ "$1" == "stop" ]]; then + virsh -c qemu:///system shutdown "${@:2}" +elif [[ "$1" == "start" ]]; then + virsh -c qemu:///system start "${@:2}" +elif [[ "$1" == "files" ]]; then + sshfs -o default_permissions lain@ubuntu.bamboo:/home/lain /home/lain/Shared +else + virsh -c qemu:///system "$@" +fi |