#!/bin/bash # enable/disable trackpoint mouse wheel emulation if [ $# = '0' ]; then echo "Usage: $0 " exit 1 fi xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2 xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200 xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5 case $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