Mini-Guide: Make the two buttons work as Back/Forward buttons.


To put the extra buttons of your mouse to work:

1)Install imwheel
    apt-get install imwheel in debianbased distros ;-)
    If you are using other distro find the Pre-Compiled package or if there is none just compile it yourself, http://jcatki.no-ip.org/imwheel/.

2)In your /etc/X11/XF86Config-4 you should modify your mouse section so that it contains the line that are in bold letters:

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

3)In your "/etc/X11/imwheel/imwheelrc" or "/etc/X11/imwheelrc", you should erase the existing file if there is one and create a newone with:

".*"
None,   Left,   Alt_L|Left
None,   Right,  Alt_L|Right

4)In your /etc/X11/xinit/xinitrc or on top of your /etc/X11/x(k or g which ever you use)dm/Sessions/XFCE-4(or whatever your DE/WM file is, if there is two put it in both) add this:

/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5" && /usr/bin/imwheel -p -b 0067

5)In your "$HOME/.Xmodmap" create one if it doesn`t exist and add:

pointer = 1 2 3 6 7 4 5

6)Copy the file created on step 5 to /root/ or whatever the ROOT`s root is. This is if you want the buttons to work correcly when logged as ROOT.


Have fun!