Section "ServerLayout"
...
InputDevice "MX Rev" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "MX Rev"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
EndSection
I have actually the setup below. I bind those F7 to F12 keys accordignly in the applications like mutt, weechat and of course the window-manager.
| main wheel pushed left | keycode = KEY_F9 |
| main wheel pushed right | keycode = KEY_F12 |
| thumb-button back | keycode = KEY_F7 |
| thumb-button ahead | keycode = KEY_F8 |
| button behind wheel | keycode = BTN_MIDDLE (middle-mouse-key) (the 'real' middle-mouse-button toggles the free rolling..) |
| side-wheel back | keycode = KEY_F10 |
| side-wheel forward | keycode = KEY_F11 |
| side-wheel pushed | mod1 = KEY_LEFTMETA (Mod1 works like a keyboard press) |
May send comments to: mac@calmar.ws, thanks!