need some help adding this to autostart for arch kde

robzombie91@lemm.ee to Linux@lemmy.ml – 12 points –
Script to control the fan speed automatically (works only for NVIDIA graphic cards)
gist.github.com

It requires root for nvidia-settings but fails each time I make my own autostart on systemd

11

You are viewing a single comment
[Unit]
Description=NVIDIA Fan Control on Wayland Arch
After=graphical-session.target

[Service]
ExecStart=sudo /home/rob/Documents/fan.sh
User=root

[Install]
WantedBy=default.target