Set bindings in i3 to control keyboard backlight
8
votes
3
answers
24122
views
For my [i3 window-manager](https://i3wm.org/) settings, I am looking for a command line tool, similar to
xbacklight
, but to control the brightness of the leds which are in the keyboard.
Basically, I can set up the leds through a command line, but it requires to be root:
# Light off the leds
echo 0 > /sys/class/leds/smc::kbd_backlight/brightness
# Light on the leds (full power)
echo 100 > /sys/class/leds/smc::kbd_backlight/brightness
I know that it is possible because Gnome3 has support for that, but I do not know exactly how they proceed...
For now, my ~/.config/i3/config
looks like this:
# screen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
# keyboard backlight controls
#TODO
# XF86KbdBrightnessUp
# XF86KbdBrightnessDown
So, is there a tool, similar to xbacklight
to do the same than screen brightness with keyboard backlight? It would be even better if this tool would have the control on both (screen and keyboard).
Asked by perror
(3309 rep)
Feb 6, 2016, 07:15 PM
Last activity: Sep 2, 2018, 06:32 PM
Last activity: Sep 2, 2018, 06:32 PM