Applying Xmodmap only for one mouse

Haricophile haricophile at aranha.fr
Mon Oct 1 04:55:40 PDT 2012


Le lundi 01 octobre 2012 à 11:35 +0200, Thomas Ilnseher a écrit :
> Hi List,
> 
> Sorry for this noob question, but:
> 
> I have a notebook with three mice, (touchpad, trackpoint & USB mouse)
> 
> I use the following xmodmap with the USB mouse:
> 
> pointer = 1 10 3 4 5 6 7 8 9 2 11 12 13 14 15 16 17 18 19 20 21 22 23 24
> 
> (To swap buttons 2 & 10).
> 
> Now this unfortunately makes the middle mouse button of the touchpad /
> trackpoint useless, which only have 3 buttons.
> 
> Is there some way to apply the xmodmap only to the USB mouse ?
> Or, can I assign both Phyical buttons 2 & 10 to logical button 2?
> 
> Thanks,
> 
> Thomas

For my trackbal Logitech Marble Mouse I have something like
in /etc/X11/xorg.conf.d/50-MarbleMouse.conf:

Section "InputClass"
        Identifier "Marble Mouse"
        MatchProduct "Logitech USB Trackball"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "ButtonMapping" "1 2 3 4 5 6 7 8 9"
        Option "EmulateWheel" "true"
        Option "EmulateWheelButton" "8"
        Option "ZAxisMapping" "4 5"
        Option "XAxisMapping" "6 7"
        Option "Emulate3Buttons" "true"
EndSection





More information about the xorg mailing list