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