mirror of
https://github.com/MatMoul/g810-led.git
synced 2025-11-21 02:52:06 +00:00
add systemd unit and udev rules
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user