Song: Fix audacious fallback
This commit is contained in:
parent
b952030011
commit
7afd5b2d22
1 changed files with 9 additions and 1 deletions
10
neofetch
10
neofetch
|
@ -1290,7 +1290,6 @@ get_song() {
|
|||
"deadbeef"*) song="$(deadbeef --nowplaying-tf '%artist% - %title%')" ;;
|
||||
"xmms2d"*) song="$(xmms2 current -f '${artist} - ${title}')" ;;
|
||||
"qmmp"*) song="$(qmmp --nowplaying '%p - %t')" ;;
|
||||
"audacious"*) audtool current-song || get_song_dbus "audacious" ;;
|
||||
"gnome-music"*) get_song_dbus "GnomeMusic" ;;
|
||||
"lollypop"*) get_song_dbus "Lollypop" ;;
|
||||
"clementine"*) get_song_dbus "clementine" ;;
|
||||
|
@ -1299,6 +1298,15 @@ get_song() {
|
|||
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
||||
"yarock"*) get_song_dbus "yarock" ;;
|
||||
|
||||
"audacious"*)
|
||||
song="$(audtool current-song)"
|
||||
|
||||
# Remove Album from 'Artist - Album - Title'
|
||||
song="${song/-* -/-}"
|
||||
|
||||
[[ -z "$song" ]] && get_song_dbus "audacious"
|
||||
;;
|
||||
|
||||
"cmus"*)
|
||||
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "} /tag title/ {$1=$2=""; print}')"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue