2020-02-08 18:43:37 -05:00
|
|
|
#!/bin/sh
|
2019-09-24 07:12:43 -04:00
|
|
|
|
|
|
|
# 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.
|
2020-04-10 22:53:45 -04:00
|
|
|
|
2019-09-24 07:12:43 -04:00
|
|
|
while : ; do
|
2020-04-10 22:53:45 -04:00
|
|
|
mpc idle >/dev/null && pkill -RTMIN+11 "${STATUSBAR:-dwmblocks}" || break
|
2019-09-24 07:12:43 -04:00
|
|
|
done
|