From be2831dc5a139075ad2d5fa91411c001067f3381 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sat, 12 Mar 2016 18:48:01 +1100 Subject: [PATCH] spotify support added --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 90debdc0..d30c8f11 100755 --- a/neofetch +++ b/neofetch @@ -1143,6 +1143,10 @@ getsong () { 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')" + 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')" + else song="Unknown" fi