From 10e3fcbd5609e88a0b4341ecfc7531b8953011ce Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Tue, 27 Dec 2016 12:28:19 +0100 Subject: [PATCH] Song: Fix cmus song query --- neofetch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 9fa4740e..ee92cf6d 100755 --- a/neofetch +++ b/neofetch @@ -1223,9 +1223,7 @@ get_song() { "guayadeque"*) get_song_dbus "guayadeque" ;; "cmus"*) - artist="$(cmus-remote -Q | grep -F "tag artist ")" - title="$(cmus-remote -Q | grep -F "tag title")" - song="${artist/tag artist} - ${title/tag title}" + song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "} /tag title/ {$1=$2=""; print}')" ;; "spotify"*)