Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Priority system for media keys #376

Open
JoeJoeTV opened this issue Jan 14, 2023 · 2 comments
Open

[Feature Request] Priority system for media keys #376

JoeJoeTV opened this issue Jan 14, 2023 · 2 comments

Comments

@JoeJoeTV
Copy link

 * csd version: 5.6.1
 * Distribution - Mint Cinnamon 21.1
 * NVIDIA GTX 1060 6G, nvidia proprietary driver
 * 64 bit

Issue
I think it would be really nice, if one could prioritize applications for media key grabbing, since every time I open my web browser(chromium based) after my music player application, the web browser gets the media key focus, but I want my music player to have the focus.
A solution, would be to disable this for the browser, but the problem is, that I sometimes actually want to use them in the browser.
I propose a setting or similar, where you can either add programs, that don't get their media key focus taken away, if another tries to grab them or a system, where you can set priorities per program, so that the one with the higher priority gets chosen over other ones with lower priorities.
A feature to disallow certain applications from getting the media key focus would also be nice, either a whitelist or a blacklist.

Steps to reproduce

  1. Open Music Player
  2. Open Web Browser
  3. Media Keys control Web Browser instead of music player

Expected behaviour
To be able to have more control over how the media keys work

Other information

@JoeJoeTV JoeJoeTV changed the title Priority system for media keys [Feature Request] Priority system for media keys Jan 14, 2023
@rcalixte
Copy link
Member

@JoeJoeTV This works for me if I select the sound source in the Sound applet. There is a "Choose player controls" option that should allow you to select between multiple MPRIS clients. (I have a similar use case myself. 😅)

You can also set key bindings in the applet settings to show the menu so that you can see which application is the current default MPRIS client.

@JoeJoeTV
Copy link
Author

JoeJoeTV commented Mar 16, 2023

Hi, I know of that option and I also use that, but that doesn't help with the Media Keys sadly. My workaround would have been to use playerctrl with rebound play/pause/skip/etc keys, but playerctrl has a problem with one MPRIS application I use, so I can't use that right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants