From be893d48c302b4894b103ba32f4b21caa94db151 Mon Sep 17 00:00:00 2001 From: Joseph Durel Date: Thu, 1 Feb 2018 21:58:06 -0500 Subject: [PATCH] Detect iTunes/Spotify successfully when the other is not running --- neofetch | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/neofetch b/neofetch index d0eea8be..f737c056 100755 --- a/neofetch +++ b/neofetch @@ -1522,7 +1522,7 @@ get_memory() { } get_song() { - player="$(ps -e | grep -m 1 -o -F \ + player="$(ps -e | grep -m 1 -o \ -e "Google Play" \ -e "Spotify" \ -e "amarok" \ @@ -1537,7 +1537,7 @@ get_song() { -e "exaile" \ -e "gnome-music" \ -e "guayadeque" \ - -e "iTunes.app" \ + -e "iTunes$" \ -e "juk" \ -e "lollypop" \ -e "mocp" \ @@ -1604,9 +1604,11 @@ get_song() { "Mac OS X") song="$(osascript <