[X-Window] Using the mouse wheel with XFree86
To activate the mouse wheel under X-Window simply add the following command line in the configuration file of XFree86:
etc/X11/XF86Config,found in the mouse device section:
Option "ZAxisMapping" "4 5"
when using a 5 button mouse or more (5 = 2 buttons + wheel click + wheel up and wheel down) apply these following lines:
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Then to put the wheel to the right place (XFree86 systematically assign it to the last position and only 5 buttons mouse are supported by default) you must run the following commands:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"