From 9faeffef12209d57b2ccce4b97cb05f3277d3a6c Mon Sep 17 00:00:00 2001 From: William Kray Date: Sun, 15 May 2016 12:13:07 -0700 Subject: [PATCH] prevent 'tag artistsort' from showing up in song title --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index aae0a56e..7c3e3057 100755 --- a/neofetch +++ b/neofetch @@ -1441,7 +1441,7 @@ getsong () { state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null) elif [ -n "$(ps x | awk '!(/awk/) && /cmus/')" ]; then - song="$(cmus-remote -Q | grep "tag artist\|title" 2>/dev/null)" + song="$(cmus-remote -Q | grep "tag artist \|title" 2>/dev/null)" song=${song/tag artist } song=${song/tag title/-} song=${song//[[:space:]]/ }