Add systemd on resume service

This commit is contained in:
Sebastian Schlicht
2018-11-28 13:52:37 +01:00
parent 6a13362f3a
commit 67a36e2920
+12
View File
@@ -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