ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.29k stars 62 forks source link

[Feature] ignored-players property for mpris widget #308

Open waddyhussain opened 1 year ago

waddyhussain commented 1 year ago

Is your feature request related to a problem? Please describe. The current mpris widget switches through all players available using the carousel buttons. It would be nice to have an option to blacklist certain players from appearing here.

Some example use cases would be blocking playerctld so your active player doesn't show up twice, or blocking a web browser if you don't want it to show up as one of the players.

Describe the solution you'd like A property that can be set in the mpris module's widget config, where the user can specify a list of players by their player names (allowing regexes would also be useful, if possible), which then won't show up when cycling through the players in the interface.

This would be something similar to the "ignored-players" option in the waybar mpris module, but enabled regardless of whether or not the user is using playerctld

Describe alternatives you've considered I guess the other option would be defining a whitelist for players instead of a blacklist (maybe both is good?)

Thanks

ErikReider commented 1 year ago

I'd do a blacklist. I'm a little swamped at the moment (the reason for the late reply) so a PR would be appreciated :)

MrPenguin07 commented 12 months ago

I gave it a go.

324