spotify support added
This commit is contained in:
parent
1616bf1341
commit
be2831dc5a
1 changed files with 4 additions and 0 deletions
4
neofetch
4
neofetch
|
@ -1143,6 +1143,10 @@ getsong () {
|
||||||
song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " name of current track as string')"
|
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')"
|
state="$(osascript -e 'tell application "iTunes" to player state as string')"
|
||||||
|
|
||||||
|
elif [ -n "$(ps aux | awk '!(/awk/) && /spotify/')" ]; then
|
||||||
|
song="$(osascript -e 'tell application "Spotify" to artist of current track as string & " - " & name of current track as string')"
|
||||||
|
state="$(osascript -e 'tell application "Spotify" to player state')"
|
||||||
|
|
||||||
else
|
else
|
||||||
song="Unknown"
|
song="Unknown"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue