Add some fun for the ol trackman marble
This commit is contained in:
parent
d48097d053
commit
a383fe819e
14
udev/handle-trackman-marble
Executable file
14
udev/handle-trackman-marble
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -o errexit
|
||||
|
||||
main() {
|
||||
: "${DEVICE_ID:=Logitech USB Trackball}"
|
||||
|
||||
# libinput Natural Scrolling Enabled (282)
|
||||
xinput set-prop "${DEVICE_ID}" 282 1
|
||||
|
||||
# libinput Scroll Method Enabled (285)
|
||||
xinput set-prop "${DEVICE_ID}" 285 0 0 1
|
||||
}
|
||||
|
||||
main "${@}"
|
1
udev/rules.d/90-trackman-marble.rules
Normal file
1
udev/rules.d/90-trackman-marble.rules
Normal file
@ -0,0 +1 @@
|
||||
ACTION=="add|change", SUBSYSTEM=="usb", ENV{ID_VENDOR}=="Logitech", ENV{ID_SERIAL}=="Logitech_USB_Trackball", RUN+="/home/me/.udev/handle-trackman-marble"
|
Loading…
Reference in New Issue
Block a user