Merge branch 'master' of github.com:dylanaraps/neofetch

This commit is contained in:
Dylan 2016-05-16 19:10:48 +10:00
commit 4f3f24589a

View file

@ -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:]]/ }