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