For few months, I use the i3 tiling window manager. This choice is due to my interest in configurable, light, powerful and simple tools.
However, Fn-combinaisons for brightness controls do not work out of the box and they must be manually configured. I try this tutorial but details on the sudoers file seem not very clear for me and do not work on my laptop. Hence, I propose a little clarification on this part.
In sudoers file, accessible via the command line sudo visudo, we add:
user ALL = NOPASSWD: /bin/bash /path/to/script/bright_up user ALL = NOPASSWD: /bin/bash /path/to/script/bright_down
where user is your login. Additional details concerning the key-binding for i3 can be also useful. In the configuration file of i3, we add:
bindsym XF86MonBrightnessDown exec --no-startup-id sudo /bin/bash /path/to/script/bright_up bindsym XF86MonBrightnessUp exec --no-startup-id sudo /bin/bash /path/to/script/bright_down
Then, a Mod+Shift+R on your i3 configuration will make brightness control functional.
If you have any questions, don’t hesitate to leave a comment.