summaryrefslogtreecommitdiff
path: root/fish/.local/bin/mediactl.sh
blob: 40ef71acf535f2cefd91b2d54775e5799ee931a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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