The sane way of .. trackpad scrolling

i use thinkpads and really like the trackpoint. i also like middle clicking. this leaves one in a state where no sane scolling is possible, hold-middle-scrolling-trackpoint just seems wrong. so heres how to use the wretched trackpad for scrolling, disabling it as mouse.

#!/bin/sh

# use VertEdgeScroll if your trackpad doesn't know about two finger scroll
# synclient VertEdgeScroll=1
synclient VertTwoFingerScroll=1

# fix scrolling speed, higher values -> slower
synclient VertScrollDelta=512

# get the correct device with "xinput list" and replace accordingly.
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 9999
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Adaptive Deceleration" 9999