summaryrefslogtreecommitdiff
path: root/fish/Local
diff options
context:
space:
mode:
Diffstat (limited to 'fish/Local')
-rwxr-xr-xfish/Local/bin/git.sh7
-rwxr-xr-xfish/Local/bin/launch.sh3
-rwxr-xr-xfish/Local/bin/launchvm.sh3
-rwxr-xr-xfish/Local/bin/mediactl.sh19
-rwxr-xr-xfish/Local/bin/sysctls.sh7
-rwxr-xr-xfish/Local/bin/upload.sh2
-rwxr-xr-xfish/Local/bin/vm.sh11
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