mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-18 18:07:12 +00:00
Song: [cmus] Simplify block and fix artistsort bug
This commit is contained in:
8
neofetch
8
neofetch
@@ -1137,11 +1137,9 @@ get_song() {
|
|||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
song=($(cmus-remote -Q | grep -F -e "tag artist" -e "tag title" -e "status" | sort))
|
cmus=($(cmus-remote -Q | grep -F -e "tag artist " -e "tag title" -e "status" | sort))
|
||||||
state="${song[0]/status }"
|
song="${cmus[1]/tag artist } - ${cmus[2]/tag title }"
|
||||||
artist="${song[1]/tag artist }"
|
state="${cmus[0]/status }"
|
||||||
title="${song[2]/tag title }"
|
|
||||||
song="${artist/tag title } - ${title/tag artist }"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"mocp"*)
|
"mocp"*)
|
||||||
|
|||||||
Reference in New Issue
Block a user