summaryrefslogtreecommitdiff
path: root/fish/Local/bin/mediactl.sh
diff options
context:
space:
mode:
authorRose <rose@pinkro.se>2025-10-10 11:29:10 +0200
committerRose <rose@pinkro.se>2025-10-10 11:29:10 +0200
commitb7dfa5fdb2330f1e1cd222365055c3d45ad473be (patch)
tree78e455c8c43c6c00fc4639932ba7315e8c074cd3 /fish/Local/bin/mediactl.sh
parent98424148dfe9ab666ee928df7565e65faa41b61b (diff)
downloaddotfiles-main.tar.gz
dotfiles-main.tar.bz2
all: Rework system structureHEADmain
Diffstat (limited to 'fish/Local/bin/mediactl.sh')
-rwxr-xr-xfish/Local/bin/mediactl.sh19
1 files changed, 19 insertions, 0 deletions
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