Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
cabf97f
Branches
master
Refs →
dotfiles-x11
/
.local
/
bin
/
sb-mpdup
8 lines · 256 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
3
# This loop will update the mpd statusbar module whenever a command changes the
4
# music player's status. mpd must be running on X's start for this to work.
5
6
while
:
;
do
7
mpc idle
>
/dev/null
&&
kill
-44
$(
cat ~/.cache/pidofbar
)
||
break
8
done