itunes support added
This commit is contained in:
parent
3ed4c43636
commit
1616bf1341
4
neofetch
4
neofetch
|
@ -1139,6 +1139,10 @@ getsong () {
|
||||||
song=${song//'['*}
|
song=${song//'['*}
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
else
|
||||||
song="Unknown"
|
song="Unknown"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue