daitj / gnome-display-brightness-ddcutil

Display brightness slider for gnome shell using ddcutil backend
GNU General Public License v3.0
294 stars 36 forks source link

[Feature request] Allow single-key shortcuts #109

Closed Igetin closed 1 year ago

Igetin commented 1 year ago

How it currently works

When setting keyboard shortcuts in the extension settings, a dialog is opened, prompting to input a shortcut. When pressing a single key, nothing happens, as it seems to expect a modifier key.

How the new feature would work

The shortcut dialog should register single key shortcuts, i.e. pressing a key without a modifier key (shift, alt, etc.).

Context

My keyboard has function keys that also have special actions in them. For convenience, I use the special actions as the primary actions, so that I don’t need to press the Fn key to trigger them. Two of those keys have brightness controls:

image

I would like to use them as-is for the extension, without having to hold a modifier key.