Configuring Kensington mouse buttons

Reid Rivenburgh reidr at pobox.com
Fri Feb 15 02:15:02 UTC 2008


Hi.  I just picked up a Kensington optical mouse, the Ci20.  Nothing
too special, but it has a couple of side mouse buttons that I'd like
to modify.  There are two on the left (thumb) side.  At the moment,
xev reports that they are buttons 2 and 3, which are the same as
pressing the wheel down (sort of the middle button) and the right
button.  What I'd like to do is reverse the side buttons, so that
what's currently 3 becomes 2.  (I would use 2 more, and apparently my
thumb is shorter than most users.)  Of course, I don't want to change
the other 2 and 3 buttons; the wheel should stay as 2 and the right
button as 3.  Is there any way to do this?

I'm running an updated F8.  Here's a section from my xorg.conf:

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option          "Buttons" "7"
        Option      "Emulate3Buttons" "yes"
EndSection

I added the Buttons 7 line, though it looks like xorg was finding 11 for itself:

(**) Option "Protocol" "IMPS/2"
(**) Mouse0: Device: "/dev/input/mice"
(**) Mouse0: Protocol: "IMPS/2"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/input/mice"
(**) Option "Buttons" "7"
(**) Option "Emulate3Buttons" "yes"
(**) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 11
(**) Mouse0: Sensitivity: 1

It's been a long time since I've fiddled with this stuff and xmodmap
and all.  Any pointers would be appreciated!

reid




More information about the fedora-list mailing list