fixed output for spotify
This commit is contained in:
parent
be2831dc5a
commit
f105207d01
2
neofetch
2
neofetch
|
@ -1145,7 +1145,7 @@ getsong () {
|
||||||
|
|
||||||
elif [ -n "$(ps aux | awk '!(/awk/) && /spotify/')" ]; then
|
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')"
|
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')"
|
state="$(osascript -e 'tell application "Spotify" to player state as string')"
|
||||||
|
|
||||||
else
|
else
|
||||||
song="Unknown"
|
song="Unknown"
|
||||||
|
|
Reference in New Issue