2018-12-19 09:35:46 -05:00
|
|
|
#!/bin/sh
|
2019-04-24 19:38:09 -04:00
|
|
|
# Whenever the mpd state changes, update the mpd i3 module.
|
|
|
|
kill -0 "$(cat /tmp/mpdupdate)" 2>/dev/null && exit || echo $$ > /tmp/mpdupdate
|
2018-12-19 09:35:46 -05:00
|
|
|
|
2019-02-01 17:49:22 -05:00
|
|
|
sleep 5 && while : ; do
|
2019-04-24 19:38:09 -04:00
|
|
|
pkill -RTMIN+11 i3blocks
|
|
|
|
mpc idle >/dev/null || exit
|
2018-12-19 09:35:46 -05:00
|
|
|
done
|