Making side mouse buttons work for nav (back/forward) in Xorg


I had a hell of a good time trying to get my old Intellimouse Explorer to have its side buttons and wheel work properly in xorg (6.9). Much of this was found here:

These are what ended up working:


Section "InputDevice"
  Identifier  "Configured Mouse"
  Driver      "mouse"
  Option "Protocol"       "ExplorerPS/2"
  Option "Device"         "/dev/input/mice"
  Option "SendCoreEvents" "true"
  Option "Buttons"        "9"
  Option "ZAxisMapping"   "4 5"

And this command executed at startup of xorg:

xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7 10 11 12 13"

If one needs to debug, run xev (xev | grep button) and look at the console output to see what button clicks. You can re-run xmodmap commands above and shift things around to play w/ it.

Somehow Thunderbird is f'd up now though, the scroll wheel will scroll, but it will open items. wtfbbq.