mirror of
https://github.com/jtgans/g13gui.git
synced 2025-07-11 11:49:01 -04:00
udev: Match attributes correctly and trigger systemd unit
This starts to make g13d more automatic. Instead of requiring manual intervention or automatic starts on system start, this will allow udevd to automatically trigger g13d when a g13 is plugged in. There's still a bug in g13d where if the device falls off the USB chain g13d won't exit, though, but this is a good start.
This commit is contained in:
parent
eba5f77a88
commit
b04a8d6152
@ -1 +1 @@
|
|||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c21c", GROUP="input", MODE="0660"
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21c", MODE="0660", TAG+="systemd", ENV{SYSTEMD_WANTS}="g13d.service"
|
||||||
|
Loading…
Reference in New Issue
Block a user