blob: 25f80f4fb55856aea02fed905a1070cc42de74f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# when a command changes MPD state, print it to file for slstatus to pick up
[ $(pgrep -cu "$(whoami)" "$(basename "$0")") -gt 1 ] && exit
while : ; do
if mpc idle > /dev/null; then
#kill -45 "$(pidof "${STATUSBAR:-dwmblocks}")"
mpc status > "/tmp/mpd.playing"
else
break
fi
done
|