TheEarthWiki

CategoryComputingTips > XFree86CompTips

XFree86 Tips

5 button mouse with XFree86 4

You have to map your side buttons to the wheel buttons since X can't see more than 5 buttons and counts the wheel up and down as buttons.

I use this in my XF86Config-4:

Section "InputDevice"
        Identifier      "Bouncy mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "ZAxisMapping"          "6 7"
        Option          "Buttons"               "7"
EndSection

Then I map the buttons 6 7 back to 4 and 5 in my ~/.xsession so the wheel works

xmodmap -e "pointer = 1 2 3 6 7 4 5"

And I run imwheel so that the side buttons actually do something and map them to do things like this in my .imwheelrc:

"^xmms"
None,           Left,   Z
None,           Right,  B

You can try and debug it should it not just work for you with xmodmap -pp and xev


I used the following to get backwards and forwards in galeon:

"^galeon"
None,   Left,   Alt_L|Left
None,   Right,  Alt_L|Right

Look in /usr/include/X11/keysymdef.h to find out all the keys you can use (remove the XK_ from the start) and use | to combine keys. For instance for emacs you might use: None,           Down,   Control_L|Meta_L|Shift_L|parenright


CategoryComputingTips

TheEarthWiki: XFree86CompTips (last edited 2008-02-19 15:39:12 by localhost)