You are not logged in.

#1 2020-03-31 19:26:25

tty000
Member
From: zoneinfo/Europe/Rome
Registered: 2020-03-29
Posts: 23

Keyboard backlight

Hi everyone,
I have this in my i3 config:

bindsym XF86KbdBrightnessUp exec --no-startup-id light -s sysfs/leds/smc::kbd_backlight -A 5
bindsym XF86KbdBrightnessDown exec --no-startup-id light -s sysfs/leds/smc::kbd_backlight -U 5

but light works only if I'm root, so I can't use this as a regular user..
What is the right way to make it work?

Offline

#2 2020-03-31 19:31:31

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Keyboard backlight

Use an appropriate entry in your sudoers file so you can run sudo light without a password.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-03-31 20:34:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,646

Re: Keyboard backlight

You could also check the permissions of the backlight file and either add your user to a relevant group or alter the permissions of the file (with a udev rule) to grant your user (or any group) access.

Offline

Board footer

Powered by FluxBB