#
# configure trackpoint settings:
#
xinput list | \
    egrep 'TrackPoint|DualPoint Stick' | \
    sed 's/.*id=\([0-9]\{1,\}\).*/\1/' | \
    while read id ; do
        xinput set-prop $id "Evdev Wheel Emulation" 1
        xinput set-prop $id "Evdev Wheel Emulation Button" 2 
        xinput set-prop $id "Evdev Wheel Emulation Timeout" 200
        xinput set-prop $id "Evdev Wheel Emulation Axes" 6 7 4 5 # horizontal und vertikal
        #xinput set-prop $id "Evdev Wheel Emulation Axes" 0 0 4 5 # nur vertikal
done
