Add some fun for the ol trackman marble

This commit is contained in:
Dan Buch 2018-08-21 23:18:25 -04:00
parent d48097d053
commit a383fe819e
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
2 changed files with 15 additions and 0 deletions

14
udev/handle-trackman-marble Executable file
View 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 "${@}"

View 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"