aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks
diff options
context:
space:
mode:
Diffstat (limited to 'config/i3blocks')
-rwxr-xr-xconfig/i3blocks/scripts/mpd3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd
index c99597e..0f3764d 100755
--- a/config/i3blocks/scripts/mpd
+++ b/config/i3blocks/scripts/mpd
@@ -20,7 +20,8 @@ case "$BLOCK_BUTTON" in
;;
esac
-if [[ "$status" == **(playing|paused)* ]]; then
+if [ "$(echo "$status" | wc -l)" -gt 1 ] && \
+ [[ "$status" == **(playing|paused)* ]]; then
echo "$status" | head -1
echo
case "$status" in