dotfiles/udev/handle-trackman-marble

15 lines
273 B
Bash
Executable File

#!/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 "${@}"