mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Use pkill instead in sb-mpdup and make more robust
This commit is contained in:
parent
be7ed1516b
commit
bf90f0bdec
@ -3,6 +3,8 @@
|
||||
# This loop will update the mpd statusbar module whenever a command changes the
|
||||
# music player's status. mpd must be running on X's start for this to work.
|
||||
|
||||
pgrep -x 'mpd' || exit
|
||||
|
||||
while : ; do
|
||||
mpc idle >/dev/null && kill -45 "$(pidof "${STATUSBAR:-dwmblocks}")" || break
|
||||
mpc idle >/dev/null && pkill -RTMIN+11 "${STATUSBAR:-dwmblocks}"
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user