Music: Added support for Pragha
This commit is contained in:
parent
21201a1abd
commit
7527f2c459
8
neofetch
8
neofetch
|
@ -1081,7 +1081,7 @@ get_memory() {
|
||||||
|
|
||||||
get_song() {
|
get_song() {
|
||||||
# This is absurdly long.
|
# This is absurdly long.
|
||||||
player="$(ps x | awk '!(/awk|Helper|Cache/) && /mpd|cmus|mocp|spotify|Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|gnome-music|lollypop|clementine/ {printf $5 " " $6; exit}')"
|
player="$(ps x | awk '!(/awk|Helper|Cache/) && /mpd|cmus|mocp|spotify|Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|gnome-music|lollypop|clementine|pragha/ {printf $5 " " $6; exit}')"
|
||||||
|
|
||||||
case "${player/*\/}" in
|
case "${player/*\/}" in
|
||||||
"mpd"*)
|
"mpd"*)
|
||||||
|
@ -1198,6 +1198,12 @@ get_song() {
|
||||||
song="${song% - }"
|
song="${song% - }"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"pragha"*)
|
||||||
|
artist="$(pragha -c | awk -F':' '/artist/ {print $2}')"
|
||||||
|
title="$(pragha -c | awk -F':' '/title/ {print $2}')"
|
||||||
|
song="$artist - $title"
|
||||||
|
;;
|
||||||
|
|
||||||
*) song="Not Playing" ;;
|
*) song="Not Playing" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue