voidrice/.scripts/statusbar/mpdupdate

10 lines
161 B
Text
Raw Normal View History

2018-12-19 14:35:46 +00:00
#!/bin/sh
[ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit
while : ; do
pgrep -x mpd || exit
mpc idle > /dev/null
pkill -RTMIN+11 i3blocks ;
done