mpdupdate returns
This commit is contained in:
parent
87768dc39b
commit
3044fe518b
1 changed files with 9 additions and 0 deletions
9
.scripts/statusbar/mpdupdate
Executable file
9
.scripts/statusbar/mpdupdate
Executable 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
|
Loading…
Reference in a new issue