diff options
Diffstat (limited to 'config/i3blocks/scripts/mpd')
-rwxr-xr-x | config/i3blocks/scripts/mpd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd index b0fbd6d..c99597e 100755 --- a/config/i3blocks/scripts/mpd +++ b/config/i3blocks/scripts/mpd @@ -20,16 +20,16 @@ case "$BLOCK_BUTTON" in ;; esac -if [[ "$status" == *[*(playing|paused)]* ]]; then +if [[ "$status" == **(playing|paused)* ]]; then echo "$status" | head -1 echo case "$status" in - *"[playing]"*) - echo "#ffff00" - ;; - *"[paused]"*) + *playing*) echo "#00ff00" ;; + *paused*) + echo "#ffff00" + ;; esac else echo "♫" |