From 9537be0e9459c859b35ce9a6d6ce41d198ff68aa Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Fri, 25 Mar 2016 13:44:15 +1100 Subject: [PATCH] changed with new gpmdp function --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 981bfa7c..836b290d 100755 --- a/neofetch +++ b/neofetch @@ -1228,9 +1228,9 @@ getsong () { ;; esac - elif ([ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /Google Play Music Desktop Player/')" ] && [ -n "$(which gpmdp)" ]); then - song="$(gpmdp artist) - $(gpmdp title)" - state="$(gpmdp status)" + elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /Google Play Music Desktop Player/')" ] && type -p gpmdp >/dev/null 2>&1; then + song="$(gpmdp current)" + state="$(gpmdp status)" elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " name of current track as string')"