2018-12-19 14:35:46 +00:00
|
|
|
#!/bin/sh
|
2019-04-24 23:38:09 +00: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 14:35:46 +00:00
|
|
|
|
2019-02-01 22:49:22 +00:00
|
|
|
sleep 5 && while : ; do
|
2019-04-24 23:38:09 +00:00
|
|
|
pkill -RTMIN+11 i3blocks
|
|
|
|
mpc idle >/dev/null || exit
|
2018-12-19 14:35:46 +00:00
|
|
|
done
|