song: use get_song_dbus for pragha
This commit is contained in:
parent
8cfabdae47
commit
059239d2a7
6
neofetch
6
neofetch
|
@ -2369,6 +2369,7 @@ get_song() {
|
||||||
"audacious"*) get_song_dbus "audacious" ;;
|
"audacious"*) get_song_dbus "audacious" ;;
|
||||||
"vlc"*) get_song_dbus "vlc" ;;
|
"vlc"*) get_song_dbus "vlc" ;;
|
||||||
"gmusicbrowser"*) get_song_dbus "gmusicbrowser" ;;
|
"gmusicbrowser"*) get_song_dbus "gmusicbrowser" ;;
|
||||||
|
"pragha"*) get_song_dbus "pragha" ;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
||||||
|
@ -2414,11 +2415,6 @@ get_song() {
|
||||||
END {print a " \n " b " \n " t}')"
|
END {print a " \n " b " \n " t}')"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"pragha"*)
|
|
||||||
song="$(pragha -c | awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2}
|
|
||||||
END {print a " \n " b " \n " t}')"
|
|
||||||
;;
|
|
||||||
|
|
||||||
"exaile"*)
|
"exaile"*)
|
||||||
song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \
|
song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \
|
||||||
org.exaile.Exaile.Query |
|
org.exaile.Exaile.Query |
|
||||||
|
|
Reference in New Issue