blob: 2fd167e05e4b37ae8dbe857963c55acd00be73d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/sh
#thanks to dpm i just changed up the commands xD
status=$(mocp -Q %state)
status=${status,,}
ACTION=`printf "playlist\n$status\nnext\nprevious\nstart\nexit\nopen\nload\nshuffle\nrepeat\n" | dmenu -i $*`
if [ "$ACTION" == 'playlist' ]; then
mocp -p
fi
if [ "$ACTION" == 'pause/play' ]; then
mocp -G
fi
if [ "$ACTION" == 'next' ]; then
mocp -f
fi
if [ "$ACTION" == 'previous' ]; then
mocp -r
fi
if [ "$ACTION" == 'start' ]; then
mocp -S
dmenu_mocp
fi
if [ "$ACTION" == 'exit' ]; then
mocp -x
fi
if [ "$ACTION" == 'open' ]; then
xterm -e mocp
fi
if [ "$ACTION" == 'load' ]; then
mocp -c &&
play=$(find ~/ -name *.m3u | dmenu -i $*)
echo $play
mocp -a "$play"
mocp -p
fi
if [ "$ACTION" == 'shuffle' ]; then
mocp -t shuffle
fi
if [ "$ACTION" == 'repeat' ]; then
mocp -t repeat
fi
|