From c0355cea99c91f2524ce8a27b4466c24f518a3cb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 12 Dec 2016 18:23:25 +1100 Subject: [PATCH] Song: [cmus] Simplify block and fix artistsort bug --- neofetch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index c9271f09..58fd1d54 100755 --- a/neofetch +++ b/neofetch @@ -1137,11 +1137,9 @@ get_song() { "cmus"*) IFS=$'\n' - song=($(cmus-remote -Q | grep -F -e "tag artist" -e "tag title" -e "status" | sort)) - state="${song[0]/status }" - artist="${song[1]/tag artist }" - title="${song[2]/tag title }" - song="${artist/tag title } - ${title/tag artist }" + cmus=($(cmus-remote -Q | grep -F -e "tag artist " -e "tag title" -e "status" | sort)) + song="${cmus[1]/tag artist } - ${cmus[2]/tag title }" + state="${cmus[0]/status }" ;; "mocp"*)