diff options
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 |