#!/bin/sh

for d in "Synaptics Inc. Composite TouchPad / TrackPoint" "TPPS/2 IBM TrackPoint"; do
    for i in `xinput list |grep "$d" | sed -e's/.*id=\([0-9]*\).*/\1/'` ; do 
	echo Doing:$i
	xinput set-int-prop $i "Evdev Wheel Emulation" 8 1; 
	xinput set-int-prop $i "Evdev Wheel Emulation Button" 8 2
    done
done
