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:
Tom Willemse 2023-10-06 16:19:51 -07:00
parent 66547ca113
commit 1bf3786878

View file

@ -1,5 +1,5 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
mpc idleloop player | while read _ while ! mpc idleloop player; do sleep 1; done 2>/dev/null | while read _
do do
song=$(mpc current) song=$(mpc current)
state=$(mpc status %state%) state=$(mpc status %state%)