changed with new gpmdp function
This commit is contained in:
parent
808821e2cd
commit
9537be0e94
1 changed files with 3 additions and 3 deletions
6
neofetch
6
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')"
|
||||
|
|
Loading…
Reference in a new issue