mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
itunes support added
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user