Keep running even when MPD isn't
In my current setup ‘mpd-notify’ gets started before ‘mpd’ is fully started, so at boot it'll immediately get disabled and I'll frequently forget to turn it back on.
This commit is contained in:
parent
66547ca113
commit
1bf3786878
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
mpc idleloop player | while read _
|
||||
while ! mpc idleloop player; do sleep 1; done 2>/dev/null | while read _
|
||||
do
|
||||
song=$(mpc current)
|
||||
state=$(mpc status %state%)
|
||||
|
|
Loading…
Reference in a new issue