From 5dc9a2fa61719efc3e9614e44d9d8df5d9043c8d Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sun, 15 Aug 2021 11:14:57 +0200 Subject: [PATCH] song: Switch cmus to get_song_dbus (#1875) --- neofetch | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/neofetch b/neofetch index e3ff4b50..9fd88247 100755 --- a/neofetch +++ b/neofetch @@ -2883,6 +2883,7 @@ get_song() { "gnome-music"*) get_song_dbus "GnomeMusic" ;; "lollypop"*) get_song_dbus "Lollypop" ;; "clementine"*) get_song_dbus "clementine" ;; + "cmus"*) get_song_dbus "cmus" ;; "juk"*) get_song_dbus "juk" ;; "bluemindo"*) get_song_dbus "Bluemindo" ;; "guayadeque"*) get_song_dbus "guayadeque" ;; @@ -2918,14 +2919,6 @@ get_song() { 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"*) case $os in "Linux") get_song_dbus "spotify" ;;