elementary / elementary/settings-keyboard
Some media keys cannot be re-assigned because Gnome Settings Daemon maps them statically
- Dominant language
- Vala
- Stars
- 31
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
## What Happened
I'm on a desktop computer with one external monitor. I have a keyboard that has brightness up/down keys. I want to assign these keys to a script that I made that send DDC commands to my monitor to change the brightness. This script works fine if I assign, for example, `ctrl` + `brightness up` and `ctrl` + `brightness down`, but not the `brightness up` and `brightness down` keys on their own. The script simply does not run.

## Expected Behavior
I'd like to be able to assign my `brightness up` and `brightness down` keys to a custom script.
## Steps to Reproduce
To make it simple, let's assign a shortcut key to the command `notify-send Hello "This is a test"`:
- Open System Settings > Keyboard > Shortcuts > Custom
- Add a custom shortcut for `notify-send Hello "This is a test"` with shortcut key `MonBrightnessUp`.
- Press the Brightness Up key; the script does not run.
- Change the shortcut to `ctrl` + `MonBrightnessUp`
- Press `ctrl` + `MonBrightnessUp`; the script runs and we see the notification.

### Logs
I don't have any logs for this.
## Platform Information
ElementaryOS 6 stable. This problem was also present in elementaryOS 5.1.7 that I was using previously.
Contributor guide
Assessment
This issue has not been assessed yet.