Browse Source

Add mouse (hid) bind/unbind rule

pull/2/head
Ali Hatami Tajik 2 years ago
parent
commit
d99c9d3d6a
  1. 11
      src/rules/90-hid-mouse.rules

11
src/rules/90-hid-mouse.rules

@ -0,0 +1,11 @@
# Following rule will take affect after binding/unbinding action of HID devices
# which is expected. These rules only take effect one time for each mouse
# insertion, removal. Actually, usb events are triggered when usb and
# usb interface are binding but hid is more specific and happen once for each
# action. change action is not used because
SUBSYSTEM=="hid", ACTION=="bind", RUN+="/usr/local/bin/changemouse.py"
# the following line may not be needed as when we unplug a mouse it would
# automatically remove devices from the list and they need no furthur
# configuration
# SUBSYSTEM=="hid", ACTION=="unbind", RUN+="/usr/local/bin/changemouse.py"
Loading…
Cancel
Save