Add support for Exaile
This commit is contained in:
parent
e947dde76d
commit
7d284e4bbb
1 changed files with 7 additions and 1 deletions
8
neofetch
8
neofetch
|
@ -1187,7 +1187,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/ {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/ {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.
|
||||||
|
@ -1250,6 +1250,12 @@ get_song() {
|
||||||
title="$(pragha -c | awk -F':' '/title/ {print $2}')"
|
title="$(pragha -c | awk -F':' '/title/ {print $2}')"
|
||||||
song="$artist - $title"
|
song="$artist - $title"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"exaile"*)
|
||||||
|
song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \
|
||||||
|
org.exaile.Exaile.Query | awk -F':|,' '{printf $6 " -" $4}')"
|
||||||
|
song="${song:3}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Display Artist and Title on separate lines.
|
# Display Artist and Title on separate lines.
|
||||||
|
|
Loading…
Reference in a new issue