diff --git a/mpd-notify b/mpd-notify index b51184b..f454e3f 100755 --- a/mpd-notify +++ b/mpd-notify @@ -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%)