You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
273 B
15 lines
273 B
6 years ago
|
#!/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 "${@}"
|