added support for Google Play Music Desktop Player
also adds an optional dependancy of `gpmdp-bash`
This commit is contained in:
parent
461da47497
commit
1d04de9c1d
2 changed files with 9 additions and 2 deletions
4
neofetch
4
neofetch
|
|
@ -1228,6 +1228,10 @@ 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/) && /iTunes/')" ]; then
|
||||
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')"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue