All pastes #2001122 Raw Edit

clueless

public text v1 · immutable
#2001122 ·published 2010-11-24 17:33 UTC
rendered paste body
#!/bin/bash# enable/disable trackpoint mouse wheel emulationif [ $# = '0' ]; then    echo "Usage: $0 <on|off>"    exit 1fixinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5case $1 in    on)	xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1	exit 0	;;    off)	xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 0	exit 0	;;    *)	echo "Bad arg"	exit 1	;;esac