Merge pull request #249 from williamkray/cmus-noartistsort
prevent 'tag artistsort' from showing up in song title
This commit is contained in:
commit
b17c923433
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1441,7 +1441,7 @@ getsong () {
|
||||||
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
|
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
|
||||||
|
|
||||||
elif [ -n "$(ps x | awk '!(/awk/) && /cmus/')" ]; then
|
elif [ -n "$(ps x | awk '!(/awk/) && /cmus/')" ]; then
|
||||||
song="$(cmus-remote -Q | grep "tag artist\|title" 2>/dev/null)"
|
song="$(cmus-remote -Q | grep "tag artist \|title" 2>/dev/null)"
|
||||||
song=${song/tag artist }
|
song=${song/tag artist }
|
||||||
song=${song/tag title/-}
|
song=${song/tag title/-}
|
||||||
song=${song//[[:space:]]/ }
|
song=${song//[[:space:]]/ }
|
||||||
|
|
Loading…
Reference in a new issue