blob: 982eb6b359a3de4034a4b25d567219f99ce11db8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
wrap_before() {
if mpc status | awk 'NR==2 { print }' | grep -iq playing
then
wrap_run mpc pause > /dev/null
WRAPPER_X_MPD_PAUSED="yes"
else
mpc status | awk 'NR==2 { print }' | grep -iq playing
fi
}
wrap_after() {
if [ "$WRAPPER_X_MPD_PAUSED" ]
then
wrap_run mpc play > /dev/null
fi
}
|