From a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 13 Mar 2019 14:26:44 +0100 Subject: i3music.sh no longer appears if cmus is not running. --- i3blocks/i3music.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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-)" -- cgit v1.2.1