voidrice/.scripts/i3mpdupdate

10 lines
154 B
Text
Raw Normal View History

2018-08-16 17:23:38 +00:00
#!/bin/sh
[ "$(pgrep -x i3mpdupdate | wc -l)" -gt 2 ] && exit
2018-05-07 16:07:47 +00:00
while : ; do
2018-08-21 06:06:06 +00:00
pgrep -x mpd || exit
2018-05-07 16:07:47 +00:00
mpc idle > /dev/null
pkill -RTMIN+11 i3blocks ;
done