diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-12-19 09:35:46 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-12-19 09:35:46 -0500 |
| commit | 3044fe518b7612cdb67b92b8c11e5a96585357c1 (patch) | |
| tree | 9f9938a787684d95d636d43c3d0f332cabf3685d /.scripts/statusbar | |
| parent | 87768dc39b2b9f26bc88f7a9e5acb55dec1a1030 (diff) | |
| download | eibhear-3044fe518b7612cdb67b92b8c11e5a96585357c1.tar.gz eibhear-3044fe518b7612cdb67b92b8c11e5a96585357c1.tar.zst eibhear-3044fe518b7612cdb67b92b8c11e5a96585357c1.zip | |
mpdupdate returns
Diffstat (limited to '.scripts/statusbar')
| -rwxr-xr-x | .scripts/statusbar/mpdupdate | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.scripts/statusbar/mpdupdate b/.scripts/statusbar/mpdupdate new file mode 100755 index 0000000..84c7ab1 --- /dev/null +++ b/.scripts/statusbar/mpdupdate @@ -0,0 +1,9 @@ +#!/bin/sh + +[ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit + +while : ; do + pgrep -x mpd || exit + mpc idle > /dev/null + pkill -RTMIN+11 i3blocks ; +done |
