[Feature Request] Priority system for media keys

Open
#376 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
desktop

Research direction

No source file, test, or entry point is named. Reproduce the behavior by opening a music player before a Chromium-based browser, then locate the daemon code that handles media-key grabs. Done would require an agreed configuration model for priorities or application allow/deny rules and behavior matching that model.

Written by the indexing model from the issue text.

Description

 * 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

Dominant language
C
Stars
71
Forks
75
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/cinnamon-settings-daemon

All issues in linuxmint/cinnamon-settings-daemon

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.