mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-18 09:57:46 +01:00
9 lines
235 B
Plaintext
9 lines
235 B
Plaintext
|
#!/bin/sh
|
||
|
# Whenever the mpd state changes, update the mpd i3 module.
|
||
|
kill -0 "$(cat /tmp/mpdupdate)" 2>/dev/null && exit || echo $$ > /tmp/mpdupdate
|
||
|
|
||
|
sleep 5 && while : ; do
|
||
|
pkill -RTMIN+11 i3blocks
|
||
|
mpc idle >/dev/null || exit
|
||
|
done
|