Posts Tagged ‘Enable’

Middle Mouse (Scroll) & Caps Lock replacement

Sunday, December 13th, 2009

Now I combined two scripts to automate the HID configuration for the x200:

#!/bin/bash
xmodmap -e "remove lock = Caps_Lock"
xmodmap -e "add shift = Caps_Lock"
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Y Axis" 8 4 5
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emugreatlation X Axis" 8 6 7

(partial source of this script: ThinkWiki)

It replaces Caps Lock with Shift and enables the TrackPoint’s middle mouse button.

Like this it’s definitely more efficient to type – and more comfortable to navigate.