eonpatapon / gnome-shell-extension-caffeine

Disable screensaver and auto suspend
GNU General Public License v2.0
588 stars 108 forks source link

Support listening on D-BUS to MPRIS implementation to trigger caffeine #307

Closed orontee closed 1 year ago

orontee commented 1 year ago

Motivation

VLC, Rhythmbox, Video, clementine, etc. there are many applications implementing the D-BUS interface Media Player Remote Interfacing Specification. From my pov, they're exactly the applications that should trigger Caffeine.

It would be nice to have an option for Caffeine to listen to D-BUS to get enabled when an application advertise it's playing through its MPRIS interface.

Gain for users: They would not have to register application one by one any more!

stuarthayhurst commented 1 year ago

Is this a duplicate of #217?

I plan on tackling that at some point when I have more time, but if anyone wants to do it first you're more than welcome :)

orontee commented 1 year ago

Right, sorry for that.