Commit 12ea7591 authored by Dylan's avatar Dylan

Add cmus support for OS X

parent eb07ceb5
......@@ -1261,7 +1261,7 @@ getsong () {
song="$(mpc current 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=${song/tag artist }
song=${song/tag title/-}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment