Give ownership of backlight brightness to backlight group, allow writing from group

This commit is contained in:
John Mertz 2023-12-10 22:25:23 -07:00
parent 9c75fab348
commit 672198be71
1 changed files with 10 additions and 0 deletions

10
systemd/blc.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Give ownership of backlight level to 'backlight' group
[Service]
ExecStartPre=sudo chown root:backlight /sys/class/backlight/intel_backlight/brightness
ExecStart=sudo chmod 664 /sys/class/backlight/intel_backlight/brightness
#ExecStart=/var/home/jpm/scripts/sway/blc.pl -d
[Install]
WantedBy=default.target