From 2b559cb8c62088dcbe997f6bb5a27002a9c22e27 Mon Sep 17 00:00:00 2001 From: Iuri Jikidze <37273763+ijiki16@users.noreply.github.com> Date: Wed, 25 Nov 2020 01:09:10 -0800 Subject: [PATCH] Add Apple Music (#1611) * iTunes --> Music * add back iTunes * fix indentation * fix indentation 2 * ty vs code * fix ? --- neofetch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neofetch b/neofetch index 328cc1cd..4a625fe0 100755 --- a/neofetch +++ b/neofetch @@ -512,6 +512,7 @@ disk_percent="on" # guayadeque # io.elementary.music # iTunes +# Music # juk # lollypop # MellowPlayer @@ -2728,6 +2729,7 @@ get_song() { "guayadeque" "io.elementary.music" "iTunes" + "Music" "juk" "lollypop" "MellowPlayer" @@ -2842,6 +2844,12 @@ get_song() { string & "\n" & album of current track as¬ string & "\n" & name of current track as string')" ;; + + "music"*) + song="$(osascript -e 'tell application "Music" to artist of current track as¬ + string & "\n" & album of current track as¬ + string & "\n" & name of current track as string')" + ;; "banshee"*) song="$(banshee --query-artist --query-album --query-title |\