aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-10-08 10:05:10 +0200
committerKarel Kočí <karel.koci@nic.cz>2020-10-08 10:05:10 +0200
commitc877621d386a2fc1e39ae23b08518ad58622fc40 (patch)
tree785a48a6740070e4c5890650ca5ffa20d151984f
parent69699988f31d0c0a53a41f603fa1404176d01530 (diff)
downloadmyconfigs-c877621d386a2fc1e39ae23b08518ad58622fc40.tar.gz
myconfigs-c877621d386a2fc1e39ae23b08518ad58622fc40.tar.bz2
myconfigs-c877621d386a2fc1e39ae23b08518ad58622fc40.zip
config/i3blocks/scripts/mpd: fix invalid color of widget
-rwxr-xr-xconfig/i3blocks/scripts/mpd10
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 "♫"