summaryrefslogtreecommitdiff
path: root/fish/.local
diff options
context:
space:
mode:
authorRose <rose@pinkro.se>2025-09-06 00:11:52 +0200
committerRose <rose@pinkro.se>2025-09-06 00:11:52 +0200
commit42554ca77885b18a2341adb4ca6245ae9757d032 (patch)
tree7a3cddd8d8ee12ab0a7ff666a791c591fc7de898 /fish/.local
parent346328a1ac2f26fc9d05fe3ce7925da9d03799cc (diff)
downloaddotfiles-42554ca77885b18a2341adb4ca6245ae9757d032.tar.gz
dotfiles-42554ca77885b18a2341adb4ca6245ae9757d032.tar.bz2
fish: add : commands
Diffstat (limited to 'fish/.local')
-rwxr-xr-xfish/.local/bin/launch.sh3
-rwxr-xr-xfish/.local/bin/mediactl.sh19
-rwxr-xr-xfish/.local/bin/sysctls.sh7
3 files changed, 29 insertions, 0 deletions
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/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