commit
1c2cee4cf5
1 changed files with 9 additions and 1 deletions
10
neofetch
10
neofetch
|
@ -3385,7 +3385,7 @@ get_song() {
|
||||||
"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" ;;
|
||||||
"cmus"*) get_song_dbus "cmus" ;;
|
|
||||||
"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" ;;
|
||||||
|
@ -3422,6 +3422,14 @@ get_song() {
|
||||||
song="$(xmms2 current -f "\${artist}"$' \n'"\${album}"$' \n'"\${title}")"
|
song="$(xmms2 current -f "\${artist}"$' \n'"\${album}"$' \n'"\${title}")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"cmus"*)
|
||||||
|
# NOTE: cmus >= 2.8.0 supports mpris2
|
||||||
|
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; a=$0}
|
||||||
|
/tag album / {$1=$2=""; b=$0}
|
||||||
|
/tag title/ {$1=$2=""; t=$0}
|
||||||
|
END {print a " \n" b " \n" t}')"
|
||||||
|
;;
|
||||||
|
|
||||||
"spotify"*)
|
"spotify"*)
|
||||||
case $os in
|
case $os in
|
||||||
"Linux") get_song_dbus "spotify" ;;
|
"Linux") get_song_dbus "spotify" ;;
|
||||||
|
|
Loading…
Reference in a new issue