mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-06-03 05:54:19 -05:00
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
|
||||
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
|
||||
song="Unknown"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user