From cdce44255a903301d7c2d69239713805621e3814 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sat, 19 Oct 2019 20:29:44 +0200 Subject: [PATCH] song: add muine player --- neofetch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/neofetch b/neofetch index 4274be07..efb6b464 100755 --- a/neofetch +++ b/neofetch @@ -457,6 +457,7 @@ disk_subtitle="mount" # mocp # mopidy # mpd +# muine # netease-cloud-music # pogo # pragha @@ -2465,6 +2466,7 @@ get_song() { "mocp" "mopidy" "mpd" + "muine" "netease-cloud-music" "plasma-browser-integration" "pogo" @@ -2579,6 +2581,13 @@ get_song() { awk -F':|,' '{if ($6 && $8 && $4) printf $6 "\n" $8 "\n" $4}')" ;; + "muine"*) + song="$(dbus-send --print-reply --dest=org.gnome.Muine /org/gnome/Muine/Player \ + org.gnome.Muine.Player.GetCurrentSong | + awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2} + END {print a "\n" b "\n" t}')" + ;; + "quodlibet"*) song="$(dbus-send --print-reply --dest=net.sacredchao.QuodLibet \ /net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |\