View previous topic :: View next topic |
Author |
Message |
miketigerwoods n00b
Joined: 02 Jan 2005 Posts: 17
|
Posted: Sat Feb 14, 2009 6:05 pm Post subject: xmodmap with multiple mice [solved] |
|
|
I have a laptop with a synaptics touchpad setup just fine. However, I also like to use a Logitech MX610 when I'm not mobile. The MX610 I use is the left-handed model and unfortunately Logitech thought it was a good idea to swap the left and right mouse buttons in the hardware which is not the style I am used to.
The Xmodmap file is setup to swap the left and right mouse buttons, however this also swaps the touchpad buttons. Is there a way to specify only a certain device's xmodmap?
I'm using KDE 4.2 and xorg-server-1.5.3.
/etc/X11/Xmodmap
Code: | ! MX610 button mappings
pointer = 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Last edited by miketigerwoods on Sat Feb 14, 2009 7:39 pm; edited 1 time in total |
|
Back to top |
|
|
spupy Tux's lil' helper
Joined: 08 May 2007 Posts: 102 Location: Germany
|
Posted: Sat Feb 14, 2009 6:41 pm Post subject: |
|
|
Interesting. I use
Code: | xmodmap -e 'pointer = 3 2 1 4 5 6 7 8 9' |
and it only swaps the buttons on my mouse. Touchpad is unaffected. Maybe there is something wrong with my setup. _________________ Make install - not war! |
|
Back to top |
|
|
miketigerwoods n00b
Joined: 02 Jan 2005 Posts: 17
|
Posted: Sat Feb 14, 2009 7:39 pm Post subject: |
|
|
I figured it out. The new HAL/FDI setup with Xorg is great!
The standard synaptics fdi in the /usr/share/hal/fdi/policy along with this one for the MX610 works:
Code: | <?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.product" contains="Logitech USB Receiver">
<merge key="input.x11_driver" type="string">evdev</merge>
<!-- Mouse setup -->
<match key="info.capabilities" contains="input.mouse">
<merge key="input.x11_options.Emulate3Buttons" type="string">no</merge>
<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ButtonMapping" type="string">3 2 1 4 5 6 7 8 9</merge>
</match>
<!-- Button mapping -->
<match key="info.capabilities" contains="input.keys">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
</match>
</device>
</deviceinfo> |
|
|
Back to top |
|
|
|