Song: Add support for Yarock
This commit is contained in:
parent
ca3e88b934
commit
cfd5a73db9
3
neofetch
3
neofetch
|
@ -1202,7 +1202,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|xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|guayadeque/ {printf $5 " " $6; exit}')"
|
player="$(ps x | awk '!(/awk|Helper|Cache/) && /mpd|cmus|mocp|spotify|Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|guayadeque|yarock/ {printf $5 " " $6; exit}')"
|
||||||
|
|
||||||
get_song_dbus() {
|
get_song_dbus() {
|
||||||
# Multiple players use an almost identical dbus command to get the information.
|
# Multiple players use an almost identical dbus command to get the information.
|
||||||
|
@ -1229,6 +1229,7 @@ get_song() {
|
||||||
"juk"*) get_song_dbus "juk" ;;
|
"juk"*) get_song_dbus "juk" ;;
|
||||||
"bluemindo"*) get_song_dbus "Bluemindo" ;;
|
"bluemindo"*) get_song_dbus "Bluemindo" ;;
|
||||||
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
"guayadeque"*) get_song_dbus "guayadeque" ;;
|
||||||
|
"yarock"*) get_song_dbus "yarock" ;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "} /tag title/ {$1=$2=""; print}')"
|
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "} /tag title/ {$1=$2=""; print}')"
|
||||||
|
|
Reference in New Issue