itunes support added
This commit is contained in:
parent
3ed4c43636
commit
1616bf1341
1 changed files with 4 additions and 0 deletions
4
neofetch
4
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
|
||||
|
|
Loading…
Reference in a new issue