From 6f41167eb5034d211ee17ca6625dd6b973e14596 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 26 Oct 2016 21:18:46 +1100 Subject: [PATCH] Song: Fix iTunes 2 --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index b9bb8986..6cb7e3bf 100755 --- a/neofetch +++ b/neofetch @@ -1121,7 +1121,7 @@ getmemory() { getsong() { # This is absurdly long. - player="$(ps x | awk '!(/awk|Helper|Cache/) && /mpd|cmus|mocp|spotify|Google Play|iTunes|rhythmbox|banshee|amarok|deadbeef|audacious/ {printf $5 " " $6; exit}')" + player="$(ps x | awk '!(/awk|Helper|Cache/) && /mpd|cmus|mocp|spotify|Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious/ {printf $5 " " $6; exit}')" case "${player/*\/}" in "mpd"*) @@ -1170,7 +1170,7 @@ getsong() { state="$(gpmdp-remote status 2>/dev/null)" ;; - "itunes.app"*) + "itunes"*) 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')" ;;