diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-13 14:26:44 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-13 14:26:44 +0100 |
commit | a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3 (patch) | |
tree | 6960d9838abbbc7fbd511e2410e6c51016d3c8c4 | |
parent | a5c1f264db4bcf99238a4c6b772eb5ad4dd2e386 (diff) | |
download | scripts-a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3.tar.gz scripts-a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3.zip |
i3music.sh no longer appears if cmus is not running.
-rwxr-xr-x | i3blocks/i3music.sh | 2 |
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-)" |