brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.05k stars 612 forks source link

MPRIS (music player API) support #1023

Closed allo- closed 1 year ago

allo- commented 3 years ago

Issue

Many music players support an API, that allows desktops like Plasma to use an unified music player control. I do not know what the API is called, but I think it uses dbus.

It would be nice, if conky could use the songtitle/artist/time/progress information in a similar way as it already support it for MPD. This would both allow supporting unknown music players like for example spotify and seamless switching between music players without changing the conky configuration.

taigrr commented 3 years ago

Are you referring to mpris?

https://specifications.freedesktop.org/mpris-spec/latest/

Egocentrix commented 3 years ago

MPRIS support would very useful I think

allo- commented 3 years ago

Someone wrote a script, but using a daemon looks like a too complicated approach.

Egocentrix commented 3 years ago

There is also this set of scripts that get the artist/title info from DBUS. Haven't tested it yet. https://github.com/gvc14/NowPlaying

I think MPRIS is 'standard' enough that it can be part of conky itself, only I don't have enough DBUS experience (yet, but I can do c++) to write a patch.

20NE commented 2 years ago

Feature needed!

t0m5k1 commented 2 years ago

you could use:

${execi xx playerctl metadata --format '{{artist}}: {{lc(title)}} '\} change xx for the seconds you want this to update

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity.