mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-01 05:06:09 +00:00
Add cmus support for OS X
This commit is contained in:
2
neofetch
2
neofetch
@@ -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/-}
|
||||
|
||||
Reference in New Issue
Block a user