diff --git a/systemd/g810-led-resume.service b/systemd/g810-led-resume.service new file mode 100644 index 0000000..442eba2 --- /dev/null +++ b/systemd/g810-led-resume.service @@ -0,0 +1,12 @@ +[Unit] +Description=Set G810 profile on resume +Before=sleep.target +StopWhenUnneeded=yes + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStop=/usr/bin/g810-led -p /etc/g810-led/profile + +[Install] +WantedBy=sleep.target