mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-19 10:27:13 +00:00
Song: Fix cmus song query
This commit is contained in:
4
neofetch
4
neofetch
@@ -1223,9 +1223,7 @@ get_song() {
|
|||||||
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
artist="$(cmus-remote -Q | grep -F "tag artist ")"
|
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "} /tag title/ {$1=$2=""; print}')"
|
||||||
title="$(cmus-remote -Q | grep -F "tag title")"
|
|
||||||
song="${artist/tag artist} - ${title/tag title}"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"spotify"*)
|
"spotify"*)
|
||||||
|
|||||||
Reference in New Issue
Block a user