Abstract

I have two mice here, one on the left the other on the right side
of my keyboard. The left mouse is better to serve with left handed
button mappings (especially when a left handed user wants to use it).

Some Information

/dev/input/mice is an abstract name for all mouse you have connected
to your computer.

/dev/input/mouseN is the name for the Nth mouse you have connected.
You won't need /dev/psaux and so forth, they even produce undefined
behaviour and it won't work if you use that device.

Option "CorePointer" marks the device where you can use options like
ButtonMapping and where the xmod changes take place.

Option          "SendCoreEvents"        "true" notifies the x-server
that this device sends coreevents. Is normally false instead of one
device!


So to make two mouse working (one left handed, the other right handed)
you can have:

------ xorg.conf ------
Section "InputDevice"
        Identifier      "Mouse Left"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mouse1"
        Option          "Protocol"              "ImPS/2"
#make this mouse Left handed
        Option          "ButtonMapping"         "3 2 1 4 5"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "InputDevice"
        Identifier      "Mouse Right"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mouse0"
        Option          "Protocol"              "ImPS/2"
        Option          "ZAxisMapping"          "4 5"
EndSection


Section "ServerLayout"
        Identifier      "Default Layout"
        Screen "Screen 1"
        InputDevice     "Generic Keyboard"
        InputDevice     "Mouse Left"
        InputDevice     "Mouse Right"
EndSection
------- xorg.conf ------

Die Jän 3 15:01:52 CET 2017
anybrowser.gif elektra.jpg fsfe-logo.png patent_button.gif valid-css.png valid-html401.png vim.gif