All pastes #1852987 Raw Edit

clueless

public text v1 · immutable
#1852987 ·published 2010-03-26 16:32 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