ErikReider/SwayOSD

Brightness feature didn't work

chenelias opened this issue · 2 comments

I add a .rules file to /etc/udev/rules.d/:

ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

and run the command sudo usermod -a -G video $USER
but it didn't work as I expected.

After I try this on nixos, it didn't work.

Maybe this helps: #12