From 684d4e881a8cc2b3f962b50e4b00cc9ae97de7f1 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Wed, 25 Dec 2019 17:42:37 +0100 Subject: [PATCH 1/2] Remove redundant trim --- neofetch | 1 - 1 file changed, 1 deletion(-) diff --git a/neofetch b/neofetch index f73a1809..a7984a58 100755 --- a/neofetch +++ b/neofetch @@ -3782,7 +3782,6 @@ END "Plasma"*) image=$XDG_CONFIG_HOME/plasma-org.kde.plasma.desktop-appletsrc image=$(awk -F '=' '$1 == "Image" { print $2 }' "$image") - image=${image##file://} ;; *) From 408d3ae5eaa1d4fe3b1e2f455379ef00fb4433cd Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Wed, 25 Dec 2019 17:43:12 +0100 Subject: [PATCH 2/2] song: Fix Exaile --- neofetch | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index a7984a58..1144c33e 100755 --- a/neofetch +++ b/neofetch @@ -2672,9 +2672,12 @@ get_song() { "exaile"*) # NOTE: Exaile >= 4.0.0 will support mpris2. - song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \ - org.exaile.Exaile.Query | - awk -F':|,' '{if ($6 && $8 && $4) printf $6 "\n" $8 "\n" $4}')" + song="$(dbus-send --print-reply --dest=org.exaile.Exaile \ + /org/exaile/Exaile org.exaile.Exaile.Query | + awk -F ':' '{sub(",[^,]*$", "", $3); t=$3; + sub(",[^,]*$", "", $4); a=$4; + sub(",[^,]*$", "", $5); b=$5} + END {print a "\n" b "\n" t}')" ;; "muine"*)