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.

Backups with rsync

Reading the excellent book surveillance:// of Tristan Nitot, I have just learn the existence of a powerful Linux tool to perform backups, namely: rsync.

rsync is a command line utility and very easy to use. It is efficient because it only transfers files which are different between the source and destination directories. Assume that you want a backup of a source to a destination, then the command is just:

rsync -a <path-source> <path-destination>

There are a lot of interesting options, so take a look to the Ubuntu documentation or to the man (Unix spirit!).