fix cmus album output (hopefully)
This commit is contained in:
parent
9b94195ed9
commit
f1052a8e73
1 changed files with 7 additions and 3 deletions
10
neofetch
10
neofetch
|
@ -1427,6 +1427,8 @@ guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 "
|
||||||
)"
|
)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player="cmus"
|
||||||
|
|
||||||
case "${player/*\/}" in
|
case "${player/*\/}" in
|
||||||
"mpd"* | "mopidy"*) song="$(mpc current)" ;;
|
"mpd"* | "mopidy"*) song="$(mpc current)" ;;
|
||||||
"mocp"*) song="$(mocp -Q "%artist - %song")" ;;
|
"mocp"*) song="$(mocp -Q "%artist - %song")" ;;
|
||||||
|
@ -1456,9 +1458,11 @@ guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 "
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "}\
|
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
||||||
/tag album/ {$1=$2=""; print; print " - "}\
|
/tag artist/ {$1=$2=""; sub(" ", ""); a=$0}\
|
||||||
/tag title/ {$1=$2=""; print}')"
|
/tag album/ {$1=$2=""; sub(" ", ""); b=$0}\
|
||||||
|
/tag title/ {$1=$2=""; sub(" ", ""); t=$0}\
|
||||||
|
END { print a " - " b " - " t }')"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"spotify"*)
|
"spotify"*)
|
||||||
|
|
Loading…
Reference in a new issue