This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Home
Nathaniel Nutter edited this page Dec 8, 2015
·
3 revisions
To enable "Natural Scrolling" you can invert the "Scroll Y Out Scale":
$ DEV_ID=$(xinput | grep 'Atmel.*Touchpad' | -E 's/.*id=([0-9]+).*/\1/')
$ xinput --list-props $DEV_ID > backup_touchpad_props.txt
$ PROP_ID=$(xinput --list-props 9 | grep 'Scroll X Out Scale' | sed -E 's/.*\(([0-9]+)\).*/\1/')
$ PROP_VAL=$(xinput --list-props 9 | grep 'Scroll X Out Scale' | sed -E 's/.*[^.0-9]([.0-9]+)/\1/')
$ xinput --set-float-prop $DEV_ID $PROP_ID -$PROP_VAL
$ xinput --list-props $DEV_ID | grep 'Scroll X Out Scale'
Scroll X Out Scale (413): -2.500000
$ PROP_ID=$(xinput --list-props 9 | grep 'Scroll Y Out Scale' | sed -E 's/.*\(([0-9]+)\).*/\1/')
$ PROP_VAL=$(xinput --list-props 9 | grep 'Scroll Y Out Scale' | sed -E 's/.*[^.0-9]([.0-9]+)/\1/')
$ xinput --set-float-prop $DEV_ID $PROP_ID -$PROP_VAL
$ xinput --list-props $DEV_ID | grep 'Scroll Y Out Scale'
Scroll Y Out Scale (414): -2.500000
These can be persisted by adding to your xorg.conf
.