use STATUSBAR variable safely

This commit is contained in:
Luke Smith
2019-11-24 08:10:31 -05:00
parent 499e222fd7
commit 3a91dc30f2
8 changed files with 10 additions and 10 deletions

View File

@@ -3,5 +3,5 @@
# 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.
while : ; do
mpc idle >/dev/null && pkill -RTMIN+11 dwmblocks || break
mpc idle >/dev/null && pkill -RTMIN+11 "${STATUSBAR:?}" || break
done