What is the best way to implement hotkeys support in Linux (ie support for brightness, audio or keyboard backlight keys)? By "best way" I mean robust, without code duplication, with minimal work required to add support for new hardware.
- Who should capture the hotkeys? Kernel module / daemon / X server / desktop environment / something else?
- Who should do the actual work (e.g. setting brightness)?