From c877621d386a2fc1e39ae23b08518ad58622fc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 8 Oct 2020 10:05:10 +0200 Subject: config/i3blocks/scripts/mpd: fix invalid color of widget --- config/i3blocks/scripts/mpd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config/i3blocks') 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 "♫" -- cgit v1.2.3