aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/i3blocks/scripts')
-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 "♫"