diff --git a/neofetch b/neofetch index 1ff3eead..90debdc0 100755 --- a/neofetch +++ b/neofetch @@ -1139,6 +1139,10 @@ getsong () { song=${song//'['*} ;; esac + elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then + song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " name of current track as string')" + state="$(osascript -e 'tell application "iTunes" to player state as string')" + else song="Unknown" fi