aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-05-07 23:51:28 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2020-05-07 23:51:28 +0200
commitd27732ea3a023da885f5991946d4db30a0cb9cbf (patch)
tree5146010ebfaf9f1447445570a932e2547403887f /i3blocks
parent342678d45fb132d0a08f315123a468c4bfbc2731 (diff)
downloadscripts-d27732ea3a023da885f5991946d4db30a0cb9cbf.tar.gz
scripts-d27732ea3a023da885f5991946d4db30a0cb9cbf.zip
i3blocks: Added an empty echo if cmus is not running.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3music.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3blocks/i3music.sh b/i3blocks/i3music.sh
index d446b50..bb646b9 100755
--- a/i3blocks/i3music.sh
+++ b/i3blocks/i3music.sh
@@ -8,7 +8,7 @@ esac
symbol=🎵
ampersand='and' # & in echo messes up script
-pgrep -x cmus >/dev/null || exit 0
+pgrep -x cmus >/dev/null || (echo "" && exit 0)
stat="$(cmus-remote -Q | grep "^status " | awk '{print $2}' | sed "s/&/$ampersand/")"
artist="$(cmus-remote -Q | grep "^tag artist " | cut -d' ' -f3- | sed "s/&/$ampersand/")"
title="$(cmus-remote -Q | grep "^tag title " | cut -d' ' -f3- | sed "s/&/$ampersand/")"