song: use get_song_dbus for rhythmbox
This commit is contained in:
parent
e85a6a03f1
commit
3da0b5cfb4
2
neofetch
2
neofetch
|
@ -2382,7 +2382,6 @@ get_song() {
|
||||||
"mpd"*|"mopidy"*) song="$(mpc -f '%artist%\n%album%\n%title%' current "${mpc_args[@]}")" ;;
|
"mpd"*|"mopidy"*) song="$(mpc -f '%artist%\n%album%\n%title%' current "${mpc_args[@]}")" ;;
|
||||||
"mocp"*) song="$(mocp -Q '%artist\n%album\n%song')" ;;
|
"mocp"*) song="$(mocp -Q '%artist\n%album\n%song')" ;;
|
||||||
"google play"*) song="$(gpmdp-remote current)" ;;
|
"google play"*) song="$(gpmdp-remote current)" ;;
|
||||||
"rhythmbox"*) song="$(rhythmbox-client --print-playing-format '%ta\n%at\n%tt')" ;;
|
|
||||||
"deadbeef"*) song="$(deadbeef --nowplaying-tf '%artist%\n%album%\n%title%')" ;;
|
"deadbeef"*) song="$(deadbeef --nowplaying-tf '%artist%\n%album%\n%title%')" ;;
|
||||||
"xmms2d"*) song="$(xmms2 current -f "\${artist}"$'\n'"\${album}"$'\n'"\${title}")" ;;
|
"xmms2d"*) song="$(xmms2 current -f "\${artist}"$'\n'"\${album}"$'\n'"\${title}")" ;;
|
||||||
"qmmp"*) song="$(qmmp --nowplaying '%p\n%a\n%t')" ;;
|
"qmmp"*) song="$(qmmp --nowplaying '%p\n%a\n%t')" ;;
|
||||||
|
@ -2404,6 +2403,7 @@ get_song() {
|
||||||
"amarok"*) get_song_dbus "amarok" ;;
|
"amarok"*) get_song_dbus "amarok" ;;
|
||||||
"dragon"*) get_song_dbus "dragonplayer" ;;
|
"dragon"*) get_song_dbus "dragonplayer" ;;
|
||||||
"smplayer"*) get_song_dbus "smplayer" ;;
|
"smplayer"*) get_song_dbus "smplayer" ;;
|
||||||
|
"rhythmbox"*) get_song_dbus "rhythmbox" ;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
||||||
|
|
Reference in New Issue