From e33625ba92f088403940beecedde4dc4006e4c15 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Fri, 7 Aug 2020 18:16:34 +0200 Subject: [PATCH] song: Switch Exaile to get_song_dbus (#1528) --- neofetch | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/neofetch b/neofetch index 0439d1ca..129fc194 100755 --- a/neofetch +++ b/neofetch @@ -2767,6 +2767,7 @@ get_song() { "xnoise"*) get_song_dbus "xnoise" ;; "tauonmb"*) get_song_dbus "tauon" ;; "olivia"*) get_song_dbus "olivia" ;; + "exaile"*) get_song_dbus "exaile" ;; "netease-cloud-music"*) get_song_dbus "netease-cloud-music" ;; "plasma-browser-integration"*) get_song_dbus "plasma-browser-integration" ;; "io.elementary.music"*) get_song_dbus "Music" ;; @@ -2811,16 +2812,6 @@ get_song() { END {print a " \n" b " \n"t}')" ;; - "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 ':' '{sub(",[^,]*$", "", $3); t=$3; - sub(",[^,]*$", "", $4); a=$4; - sub(",[^,]*$", "", $5); b=$5} - END {print a " \n" b " \n" t}')" - ;; - "muine"*) song="$(dbus-send --print-reply --dest=org.gnome.Muine /org/gnome/Muine/Player \ org.gnome.Muine.Player.GetCurrentSong |