mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Merge pull request #267 from iandrewt/itunes-fix
fixed iTunes song output
This commit is contained in:
2
neofetch
2
neofetch
@@ -1489,7 +1489,7 @@ getsong () {
|
|||||||
state="$(gpmdp status)"
|
state="$(gpmdp status)"
|
||||||
|
|
||||||
elif [ -n "$(ps x | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then
|
elif [ -n "$(ps x | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then
|
||||||
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')"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user