mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 01:06:11 +00:00
add systemd unit and udev rules
This commit is contained in:
parent
ea1fe0dfc3
commit
ca60b8172e
14
systemd/g810-led-reboot.service
Normal file
14
systemd/g810-led-reboot.service
Normal 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
10
systemd/g810-led.service
Normal 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
|
Loading…
Reference in New Issue
Block a user