aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-03-13 14:26:44 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-03-13 14:26:44 +0100
commita8eb4df1443f0b9c0f402d28b82d1a21b6613ac3 (patch)
tree6960d9838abbbc7fbd511e2410e6c51016d3c8c4 /i3blocks
parenta5c1f264db4bcf99238a4c6b772eb5ad4dd2e386 (diff)
downloadscripts-a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3.tar.gz
scripts-a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3.zip
i3music.sh no longer appears 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 24deb3f..d0403f6 100755
--- a/i3blocks/i3music.sh
+++ b/i3blocks/i3music.sh
@@ -7,7 +7,7 @@ case $BLOCK_BUTTON in
esac
symbol=🎵
-pgrep -x cmus >/dev/null || (echo "$symbol" && exit)
+pgrep -x cmus >/dev/null || exit 0
stat="$(cmus-remote -Q | grep "status " | awk '{print $2}')"
artist="$(cmus-remote -Q | grep "tag artist " | cut -d' ' -f3-)"
title="$(cmus-remote -Q | grep "tag title " | cut -d' ' -f3-)"