From 672198be71aeb69cde694623711d1d3c74543e1c Mon Sep 17 00:00:00 2001 From: John Mertz Date: Sun, 10 Dec 2023 22:25:23 -0700 Subject: [PATCH] Give ownership of backlight brightness to backlight group, allow writing from group --- systemd/blc.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 systemd/blc.service diff --git a/systemd/blc.service b/systemd/blc.service new file mode 100644 index 000000000..53b5e7a00 --- /dev/null +++ b/systemd/blc.service @@ -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