add song= support for MellowPlayer using get_song_dbus (#1558)
* add song= support for MellowPlayer using get_song_dbus * adjusted indent for mellowplayer get_song_dbus Co-authored-by: ncmprhnsb1 <ncmprhnsb1@rjc700@gmail.com>
This commit is contained in:
parent
5f8ce9bbc4
commit
af4cf16bf4
3
neofetch
3
neofetch
|
@ -508,6 +508,7 @@ disk_percent="on"
|
||||||
# iTunes
|
# iTunes
|
||||||
# juk
|
# juk
|
||||||
# lollypop
|
# lollypop
|
||||||
|
# MellowPlayer
|
||||||
# mocp
|
# mocp
|
||||||
# mopidy
|
# mopidy
|
||||||
# mpd
|
# mpd
|
||||||
|
@ -2696,6 +2697,7 @@ get_song() {
|
||||||
"iTunes"
|
"iTunes"
|
||||||
"juk"
|
"juk"
|
||||||
"lollypop"
|
"lollypop"
|
||||||
|
"MellowPlayer"
|
||||||
"mocp"
|
"mocp"
|
||||||
"mopidy"
|
"mopidy"
|
||||||
"mpd"
|
"mpd"
|
||||||
|
@ -2772,6 +2774,7 @@ get_song() {
|
||||||
"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" ;;
|
||||||
|
"MellowPlayer"*) get_song_dbus "MellowPlayer3" ;;
|
||||||
|
|
||||||
"mpd"* | "mopidy"*)
|
"mpd"* | "mopidy"*)
|
||||||
song="$(mpc -f '%artist% \n%album% \n%title%' current "${mpc_args[@]}")"
|
song="$(mpc -f '%artist% \n%album% \n%title%' current "${mpc_args[@]}")"
|
||||||
|
|
Reference in New Issue