scripts/thinkpad/user-thinkpad-controls@.ser...

9 lines
221 B
SYSTEMD

[Unit]
Description=Give ownership of backlight to %I
[Service]
ExecStart=chown %i:%i /sys/class/backlight/intel_backlight/brightness /sys/class/leds/tpacpi::kbd_backlight/brightness
[Install]
WantedBy=multi-user.target