From 8c9b474d1b61b44a216246318b25566146d83077 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Mon, 26 Dec 2016 17:11:53 +0100 Subject: [PATCH] Song: Fix Exaile song query --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index f0487a3f..fc273673 100755 --- a/neofetch +++ b/neofetch @@ -1262,8 +1262,7 @@ get_song() { "exaile"*) song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \ - org.exaile.Exaile.Query | awk -F':|,' '{printf $6 " -" $4}')" - song="${song:3}" + org.exaile.Exaile.Query | awk -F':|,' '{if ($6 && $4) printf $6 " -" $4}')" ;; esac