|
From: Sami <sn...@ba...> - 2004-02-21 14:09:51
|
On Saturday 21 February 2004 14:16, Derrier Dominique wrote:
> Many thanks ,
> but how can I re-enable it ?
That's the hard part. :)
If you want that to be easier you could do like this:
This example is for wheel mouse (3 buttons + wheel)
In /etc/X11/XF86Config* set the mouse button count one higher than the
real button count
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "6" # Here
Option "ZAxisMapping" "4 5" # Wheel mapping
EndSection
Then issuing this command will disable the right mouse button.
modmap -e "pointer = 1 2 6 4 5 3"
You get it back using this command
modmap -e "pointer = 1 2 3 4 5 6"
If you want this to be automatic for certain users you can add the
quoted expression to your .Xmodmap file or in the global one some where
under /etc/X11/.
|