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/bin/mediactl.sh | |
parent | 98424148dfe9ab666ee928df7565e65faa41b61b (diff) | |
download | dotfiles-main.tar.gz dotfiles-main.tar.bz2 |
Diffstat (limited to 'fish/Local/bin/mediactl.sh')
-rwxr-xr-x | fish/Local/bin/mediactl.sh | 19 |
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 |