mpdupdate returns

This commit is contained in:
Luke Smith 2018-12-19 09:35:46 -05:00
parent 3c1247e7dd
commit 0caade59d1
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

9
.scripts/statusbar/mpdupdate Executable file
View File

@ -0,0 +1,9 @@
#!/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