I have a laptop with Manjaro XFCE and I damaged my F2
and F3
keys, which operate the brightness of the display (up and down respectively) while holding the Fn
key.
The xfce-power-manager
works fine, and I can use the slider on the bottom bar, but I would like to know if I can remap brightness to other keys. I haven't been able to find a solution for now.
I tried instaling light package, as I saw in another reply, and using:
light -U 20
decreases the brightness as expected, but it has to be done as root, so my idea to remap that command to another key combination, doesn't work, because it doesn't have privileges.
Any idea? Thanks!
xbacklight -inc 5
andxbacklight -dec 5
/etc/X11/xorg.conf.d/20-video.conf
, and creating it with the suggested content doesn't change the output (same "no outputs have backlight property" error)acpilight
package instead ofxorg-backlight
package in Arch made the commandsxbacklight -inc 10
(and the decrease option) work. But again as withlight
package, I need sudo. I havn't been able to editsudoers
in a way that my user can run (just) that script without sudo. But that is another problem. If nobody has another idea, I will explore how to run a script like that.