diff options
author | Karel Kočí <karel.koci@nic.cz> | 2020-10-08 10:05:10 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2020-10-08 10:05:10 +0200 |
commit | c877621d386a2fc1e39ae23b08518ad58622fc40 (patch) | |
tree | 785a48a6740070e4c5890650ca5ffa20d151984f /config | |
parent | 69699988f31d0c0a53a41f603fa1404176d01530 (diff) | |
download | myconfigs-c877621d386a2fc1e39ae23b08518ad58622fc40.tar.gz myconfigs-c877621d386a2fc1e39ae23b08518ad58622fc40.tar.bz2 myconfigs-c877621d386a2fc1e39ae23b08518ad58622fc40.zip |
config/i3blocks/scripts/mpd: fix invalid color of widget
Diffstat (limited to 'config')
-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 "♫" |