So, I have the laptop without buttons on the keyboard for brightness control and when I try to change my config then these shortcuts are not working. Any ideas? # Sreen brightness controls
bindsym $mod+i exec xbacklight -inc 20 # increase screen brightness
bindsym $mod+o exec xbacklight -dec 20 # decrease screen brightness
Asked
Active
Viewed 6,322 times
1

Igor Foxly
- 439
2 Answers
1
Have you tried the xbacklight commands on their own? If they don't work you could try using this tool https://github.com/multiplexd/brightlight then:
bindsym $mod+i exec --no-startup-id brightlight -i 20
bindsym $mod+o exec --no-startup-id brightlight -d 20
Refer to this answer: https://askubuntu.com/a/878962/41785

unil
- 96
-
So, it works nut only in Terminal with SUDO command, how can I use it without SUDO? Ubuntu 20.04 – Igor Foxly Jun 21 '20 at 08:48
0
Ubuntu ships with brightnessctl
Add yourself to the video user group with sudo usermod -aG video ${USER}
to be able to use it without superuser privileges.
To add to the other answer, this would be
bindsym $mod+i exec --no-startup-id brightnessctl s 5%+
bindsym $mod+o exec --no-startup-id brightnessctl s 5%-