diff --git a/systemd/g810-led-reboot.service b/systemd/g810-led-reboot.service new file mode 100644 index 0000000..4a637f5 --- /dev/null +++ b/systemd/g810-led-reboot.service @@ -0,0 +1,14 @@ +[Unit] +Description=Set G810 profile on shutdown +DefaultDependencies=no +Before=shutdown.target reboot.target halt.target + + +[Service] +ExecStart=/usr/bin/g810-led -p /etc/g810-led/reboot +Type=oneshot +RemainAfterExit=yes + +[Install] +WantedBy=shutdown.target + diff --git a/systemd/g810-led.service b/systemd/g810-led.service new file mode 100644 index 0000000..4d4b73e --- /dev/null +++ b/systemd/g810-led.service @@ -0,0 +1,10 @@ +[Unit] +Description=Set Logitech G810 Led Profile + +[Service] +ExecStart=/bin/g810-led -p /etc/g810-led/profile + +[Install] +WantedBy=multi-user.target +Type=oneshot +RemainAfterExit=yes