Add some fun for the ol trackman marble
This commit is contained in:
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 "${@}"
|
Reference in New Issue
Block a user