Applying Xmodmap only for one mouse

Thomas Ilnseher illth at gmx.de
Tue Oct 2 14:49:59 PDT 2012


Am Montag, den 01.10.2012, 05:45 -0700 schrieb Alan Coopersmith:
> On 10/ 1/12 02:35 AM, Thomas Ilnseher wrote:
> > 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 ?

> I believe "xinput --set-button-map" with the device specified will do what
> you want.
That did the trick, thanks a lot.
BTW, Haricophile was also right, thanks u too. The advantage of xinput
is that I can do that as ordinary user.

Sincerely,

Thomas

> 





More information about the xorg mailing list