Mouse
From Unofficial TransGaming Wiki
Contents |
MX500 and MX700 Logitech Configuration
In order to do this you will need access to updates of the driver thats required. In Fedora for instance you will need to compile from source. In ubuntu and possibly other debian based distro's the driver should be in your repository. The link to the sourceforge page will be located in the links section.
Edit /etc/X11/xorg.conf
replace
Section "InputDevice"
Identifier "mouse.usb"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "YES"
Option "ZAxisMapping" "4 5"
EndSection
with
Section "InputDevice"
Identifier "mouse.usb" #your identifier
Driver "mouse" #your driver
Option "CorePointer" #your details
Option "Device" "/dev/input/mice" #your details
Option "Protocol" "ExplorerPS/2" #Possibly needs to be changed I did and it worked
Option "Buttons" "7" #needs to be changed
Option "ZAxisMapping" "6 7" #needs to be changed
EndSection
Install IMWheel
Debian based distro's should be able to just use apt. Fedora not so sure I couldn't find it. Other distro's I have tried so take that into account. The sourceforge link is down at the bottom of here.
Editing Your Xsession
Put the following lines in the .xsession file in your home directory. This didn't work for me or the original author of this article.
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
exec $REALSTARTUP
This didn't worked for me in Ubuntu. So I made a script file called "mouse", like the following, and put it on /home/"login"/.kde/Autostart, and in "Sessions">"start programs" on Gnome. Don't forget to make it executable (chmod +x mouse)
#!/bin/sh
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
exec $REALSTARTUP
Create your specific mouse config file
Put the following lines at the bottom of /etc/X11/imwheel/imwheelrc
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
Reboot X
Hit CTRL+ALT+BACKSPACE to restart X and log back in. Your back/forward buttons should now work in Firefox. Because it now works in firefox in game bindings should work. I play wow more but I will fully test this in Natural Selection and also Counter-strike(:source)
Other X.org Xfree configs
Taken from the Gentoo Wiki Page.
Section "InputDevice" Identifier "Mouse1" Option Driver "mouse" Option "Protocol" "evdev" Option "Dev Name" "B16_b_02 USB-PS/2 Optical Mouse" # execute 'cat /proc/bus/input/devices' and replace <devname> with the corresponding output. # The entered string has to match at least partly the true devname. # "B16_b_02" stands for "logitech". # So "USB-PS/2 Optical Mouse" is pretty safe to use. Option "Dev Phys" "usb-*/input0" # cat /proc/bus/input/devices Option "Device" "/dev/input/mice" # (/dev/input/mice also appears to work) Option "Buttons" "10" Option "ZAxisMapping" "9 10" Option "Resolution" "800" EndSection
Examples of imwheelrc or /etc/imwheelrc
# IMWheel Configuration file ($HOME/.imwheelrc or /etc/imwheelrc) # (GPL)Jon Atkins # Please read the README and/or imwheel(1) manpage for info # and this is best operated on using vim (as I said: It's crunchy) # # # This is only for demonstration of the priority command... # See the other global Exclude command below for the one you want to use! # If this is activated it will only apps that have a lower priority # priority is based first on the priority command, then the position in this # file - the higher the line is in a file the higher in a priority class it is # thus for a default priority you can see that the position in the file is # important, but the priority command CAN appear anywahere in a window's list # of translations, and the priority will be assigned to all translations below # it until either a new window is defined or the priority is set again. # #".*" #@Priority=-1000 #the default priority is zero, higher numbers take precedence #@Exclude #@Repeat # # want it to type something? # this would type "Rofl" and press Return in any window ".*" #None,Left,Shift_L|R|-R|-Shift_L|O|-O|F|-F|L|-L|Return #None,Right,Shift_L|S|-S|-Shift_L|P|-P|A|-A|M|-M|Return None,Left,Control_L|V None,Right,Control_L|X #None,Button2,Shift_L|S|-S|-Shift_L|P|-P|A|-A|M|-M #This doesn't work. Arse. # # # # This one rule can send button events, as if you used ZAxisMapping "4 5" # Make sure your XF86Config allows for the max buttons needed... # otherwise the events will NOT even be generated... #".*" #, Up, Button4 #, Down, Button5 # , Left, Button6 #, Right, Button7 #, Thumb1, Button6 #, Thumb2, Button7 #

