song: Switch Exaile to get_song_dbus (#1528)
This commit is contained in:
parent
286ef32f45
commit
e33625ba92
11
neofetch
11
neofetch
|
@ -2767,6 +2767,7 @@ get_song() {
|
||||||
"xnoise"*) get_song_dbus "xnoise" ;;
|
"xnoise"*) get_song_dbus "xnoise" ;;
|
||||||
"tauonmb"*) get_song_dbus "tauon" ;;
|
"tauonmb"*) get_song_dbus "tauon" ;;
|
||||||
"olivia"*) get_song_dbus "olivia" ;;
|
"olivia"*) get_song_dbus "olivia" ;;
|
||||||
|
"exaile"*) get_song_dbus "exaile" ;;
|
||||||
"netease-cloud-music"*) get_song_dbus "netease-cloud-music" ;;
|
"netease-cloud-music"*) get_song_dbus "netease-cloud-music" ;;
|
||||||
"plasma-browser-integration"*) get_song_dbus "plasma-browser-integration" ;;
|
"plasma-browser-integration"*) get_song_dbus "plasma-browser-integration" ;;
|
||||||
"io.elementary.music"*) get_song_dbus "Music" ;;
|
"io.elementary.music"*) get_song_dbus "Music" ;;
|
||||||
|
@ -2811,16 +2812,6 @@ get_song() {
|
||||||
END {print a " \n" b " \n"t}')"
|
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"*)
|
"muine"*)
|
||||||
song="$(dbus-send --print-reply --dest=org.gnome.Muine /org/gnome/Muine/Player \
|
song="$(dbus-send --print-reply --dest=org.gnome.Muine /org/gnome/Muine/Player \
|
||||||
org.gnome.Muine.Player.GetCurrentSong |
|
org.gnome.Muine.Player.GetCurrentSong |
|
||||||
|
|
Reference in New Issue