Add cmus support for OS X
This commit is contained in:
parent
eb07ceb563
commit
12ea7591dc
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1261,7 +1261,7 @@ getsong () {
|
||||||
song="$(mpc current 2>/dev/null)"
|
song="$(mpc current 2>/dev/null)"
|
||||||
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
|
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
|
||||||
|
|
||||||
elif pgrep "cmus" >/dev/null 2>&1; 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/-}
|
||||||
|
|
Loading…
Reference in a new issue