From 85fdd54f95600ad69fea5400afe6a2b7b3727bd7 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Tue, 27 Dec 2016 10:21:02 +0100 Subject: [PATCH] Song: Speed up Pragha song query --- neofetch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/neofetch b/neofetch index fc273673..8e6a735b 100755 --- a/neofetch +++ b/neofetch @@ -1255,9 +1255,7 @@ get_song() { ;; "pragha"*) - artist="$(pragha -c | awk -F':' '/artist/ {print $2}')" - title="$(pragha -c | awk -F':' '/title/ {print $2}')" - song="$artist - $title" + song="$(pragha -c | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')" ;; "exaile"*)