XFCE change brightness steps and/or change brightness key behavior

brightnesshotkeyskeyboard shortcutsxfce

I'm trying to change the brightness steps in XFCE from 10 to 20. I'd like the ability to gradually change the laptop's brightness by 5% instead of 10%. Is there a way to set this up with a config file for XFCE?

If that is not an option, I have thought of another way: I know that I can disable XFCE's power settings from handling brightness keys, but setting up a shortcut in keyboard preferences does not seem to be able to override this.

Is there another way I can remap what XF86MonBrightnessUp and XF86MonBrightnessDown do when pressed? Specifically, I'd like Up to use the command lumeus +5% and Down to use the command lumeus -5%.

Can either idea be done while using XFCE with its XFWM?

Best Answer

No need to recompile the xfce4-power-manager

There really is no need to recompile xfce4-power-manager.

Firstly, install xbacklight

$ sudo apt install xbacklight

Secondly, check whether you have control over the backlight.

$ xbacklight -1
$ xbacklight +5

Should these commands result in a No outputs have backlight property error, then follow these remediating steps before proceeding.

Once xbacklight -1 and xbacklight +1 work from the command line, proceed with assigning these commands to respectively the XF86MonBrightnessDown and XF86MonBrightnessUp keys. This is done by hitting those keys when asked by the Settings → Keyboard → Application Shortcuts application.

Finally, reboot for these changes to take effect.

Keyboard settings

Related Question