Brightness Control in i3 with Intel Backlight

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s