dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
22.16k stars 1.66k forks source link

cmus song output not working #389

Closed ncmprhnsbl closed 8 years ago

ncmprhnsbl commented 8 years ago

song output for cmus seems not to work properly: (with song_shorthand="off") Song: -

heres relevant part output from -vv

  • info Song song
    • subtitle=Song
    • '[' -z song ']'
    • getsong
    • eval 'output=$song' ++ output=' - '
    • '[' -z ' - ' ']' ++ trim ' - ' ++ set -f ++ builtin echo -E ' - ' ++ set +f
    • output=' - '
    • case "$1" in
    • string='\033[1m\033[1mSong\033[0m'
    • string+='\033[0m: \033[0m - '
    • length=9
    • '[' -z song ']'
    • printf '%b%s\n' '\033[47C\033[1m\033[1mSong\033[0m\033[0m: \033[0m - \033[0m' Song: -

this part seems correct:

$ cmus-remote -Q | grep "tag artist |title |status" 2>/dev/null | sort status playing tag artist Weedpecker tag title Into The Woods

with song_shorthand="on" output is: Song

-vv

  • info_height=20
  • info Song song
  • subtitle=Song
  • '[' -z song ']'
  • getsong Song
  • eval 'output=$song' ++ output=
  • '[' -z '' ']'
  • return
  • info linebreak
  • subtitle=linebreak
  • '[' -z '' ']'
  • getlinebreak
  • eval 'output=$linebreak' ++ output=' '
  • '[' -z ' ' ']' ++ trim ' ' ++ set -f ++ builtin echo -E ' ' ++ set +f
  • output=' '

using cmus version 2.7.1, in void linux, neofetch 1.8.1_2

dylanaraps commented 8 years ago

Fixed.

ncmprhnsbl commented 8 years ago

comfirmed, thanks :+1: