Merge pull request #1012 from mstraube/gmusicbrowser
song: add support for gmusicbrowser
This commit is contained in:
commit
3fe0e1e65c
1 changed files with 22 additions and 19 deletions
41
neofetch
41
neofetch
|
@ -410,6 +410,7 @@ disk_subtitle="mount"
|
||||||
# elisa
|
# elisa
|
||||||
# exaile
|
# exaile
|
||||||
# gnome-music
|
# gnome-music
|
||||||
|
# gmusicbrowser
|
||||||
# Google Play
|
# Google Play
|
||||||
# guayadeque
|
# guayadeque
|
||||||
# iTunes
|
# iTunes
|
||||||
|
@ -2324,6 +2325,7 @@ get_song() {
|
||||||
"elise"
|
"elise"
|
||||||
"exaile"
|
"exaile"
|
||||||
"gnome-music"
|
"gnome-music"
|
||||||
|
"gmusicbrowser"
|
||||||
"Google Play"
|
"Google Play"
|
||||||
"guayadeque"
|
"guayadeque"
|
||||||
"iTunes"
|
"iTunes"
|
||||||
|
@ -2366,25 +2368,26 @@ get_song() {
|
||||||
|
|
||||||
case "${player/*\/}" in
|
case "${player/*\/}" in
|
||||||
"mpd"* | "mopidy"*) song="$(mpc -f '%artist% \n %album% \n %title%' current)" ;;
|
"mpd"* | "mopidy"*) song="$(mpc -f '%artist% \n %album% \n %title%' current)" ;;
|
||||||
"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')" ;;
|
"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')" ;;
|
||||||
"gnome-music"*) get_song_dbus "GnomeMusic" ;;
|
"gnome-music"*) get_song_dbus "GnomeMusic" ;;
|
||||||
"lollypop"*) get_song_dbus "Lollypop" ;;
|
"lollypop"*) get_song_dbus "Lollypop" ;;
|
||||||
"clementine"*) get_song_dbus "clementine" ;;
|
"clementine"*) get_song_dbus "clementine" ;;
|
||||||
"juk"*) get_song_dbus "juk" ;;
|
"juk"*) get_song_dbus "juk" ;;
|
||||||
"bluemindo"*) get_song_dbus "Bluemindo" ;;
|
"bluemindo"*) get_song_dbus "Bluemindo" ;;
|
||||||
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
||||||
"yarock"*) get_song_dbus "yarock" ;;
|
"yarock"*) get_song_dbus "yarock" ;;
|
||||||
"deepin-music"*) get_song_dbus "DeepinMusic" ;;
|
"deepin-music"*) get_song_dbus "DeepinMusic" ;;
|
||||||
"tomahawk"*) get_song_dbus "tomahawk" ;;
|
"tomahawk"*) get_song_dbus "tomahawk" ;;
|
||||||
"elisa"*) get_song_dbus "elisa" ;;
|
"elisa"*) get_song_dbus "elisa" ;;
|
||||||
"sayonara"*) get_song_dbus "sayonara" ;;
|
"sayonara"*) get_song_dbus "sayonara" ;;
|
||||||
"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" ;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
||||||
|
|
Loading…
Reference in a new issue