1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-22 17:06:10 +00:00

add systemd unit and udev rules

This commit is contained in:
MatMoul 2016-06-17 22:13:11 +02:00
parent ea1fe0dfc3
commit ca60b8172e
2 changed files with 24 additions and 0 deletions

View File

@ -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

10
systemd/g810-led.service Normal file
View File

@ -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