From 12ea7591dc6c836b125f47394d12399c496d8c2b Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 2 Apr 2016 01:39:20 +1100 Subject: [PATCH] Add cmus support for OS X --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 82ab3d2e..20f33a65 100755 --- a/neofetch +++ b/neofetch @@ -1261,7 +1261,7 @@ getsong () { song="$(mpc current 2>/dev/null)" state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null) - elif pgrep "cmus" >/dev/null 2>&1; then + elif [ -n "$(ps x | awk '!(/awk/) && /cmus/')" ]; then song="$(cmus-remote -Q | grep "tag artist\|title" 2>/dev/null)" song=${song/tag artist } song=${song/tag title/-}