Page 1 of 14 12311 ... LastLast
Results 1 to 10 of 132

Thread: HOWTO: 5 button mouse working on firefox (back/forward buttons)

  1. #1
    Join Date
    Apr 2005
    Location
    Earth
    Beans
    8

    HOWTO: 5 button mouse working on firefox (back/forward buttons)

    Hi
    I've got it here (for Xandros):

    http://www.adamfranco.com/?site=afra...22&action=site

    It works for me in Ubuntu. I've made some corrections...

    1. Edit /etc/X11/xorg.conf

    replace

    Section "InputDevice"
    Identifier "mouse.usb"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "IMPS/2"
    Option "Emulate3Buttons" "YES"
    Option "ZAxisMapping" "4 5"
    EndSection

    with

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

    2. Install IMWheel via apt

    3. put the following lines in the .xsession file in your home directory:**

    exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
    exec imwheel -k -b "67" &
    exec $REALSTARTUP

    4. put the following lines at the bottom of /etc/X11/imwheel/imwheelrc

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

    "(null)"
    None, Up, Alt_L|Left
    None, Down, Alt_L|Right

    5. hit CTRL+ALT+BACKSPACE to restart X and log back in. Your back/forward buttons should now work in Firefox.

    ** this don't worked for me in Ubuntu. So I made a script file called "mouse", like the following, and put it on /home/"login"/.kde/Autostart, and in "Sessions">"start programs" on Gnome. Don't forget to make it executable (chmod +x mouse)

    #!/bin/sh
    exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
    exec imwheel -k -b "67" &
    exec $REALSTARTUP
    Last edited by James Brown; April 20th, 2005 at 04:40 AM.

  2. #2
    Join Date
    Apr 2005
    Beans
    6

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    Thanks! Worked for me in firefox. Didn't read the last part so my X session crashed on me when I made the .xsession file...oops!

    Anybody know how to have this work with Epiphany? I'd rather use that browser but I'm really missing this feature for my mouse (MX500)

  3. #3
    Join Date
    Apr 2005
    Beans
    6

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    Found it!

    Just edited /etc/X11/xorg.conf

    Option "ZAxisMapping" "6 7"
    Option "Buttons" "9"

    Then edited the mouse script to reflect this

    exec xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 " &
    exec imwheel -k -b "67" &
    exec $REALSTARTUP

    Works with a Logitech MX500

  4. #4
    Join Date
    Apr 2005
    Location
    Sweden
    Beans
    481
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    For me it was enough to do the editing of xorg.conf part.
    Although I had to set the ZAxisMapping to "4 5" instead of "6 7".

    So I recommend that you try without installing IMWheel and editing .session and if it still doesn't work after restart of X, do the rest of the stuff.

    (I'm using a Intellimouse Explorer in Gnome)
    Hackers of the world, unite!

  5. #5
    Join Date
    Apr 2005
    Beans
    24

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    Quote Originally Posted by dyle
    Found it!

    Just edited /etc/X11/xorg.conf

    Option "ZAxisMapping" "6 7"
    Option "Buttons" "9"

    Then edited the mouse script to reflect this

    exec xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 " &
    exec imwheel -k -b "67" &
    exec $REALSTARTUP

    Works with a Logitech MX500
    great! I have a mx 510 (i'll try as soon as i can..)
    u did all the process upthere or just edited this few lines in xorg.conf???

  6. #6
    Join Date
    Dec 2004
    Location
    Austria (Upper Austria)
    Beans
    52

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)


  7. #7
    Join Date
    Dec 2004
    Location
    Nova Scotia, Canada
    Beans
    184

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    I have known about this hack for a while, but is there anyway to get the extra buttons to work with Nautilus and Konqueror?

  8. #8
    Join Date
    Dec 2004
    Location
    Austria (Upper Austria)
    Beans
    52

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    Quote Originally Posted by Gnobody
    I have known about this hack for a while, but is there anyway to get the extra buttons to work with Nautilus and Konqueror?
    I want to get the buttons work with nautilus too, I'm working on that

  9. #9
    Join Date
    Apr 2005
    Beans
    24

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    Quote Originally Posted by Gnobody
    I have known about this hack for a while, but is there anyway to get the extra buttons to work with Nautilus and Konqueror?
    i did it and in conqueror the buttons work great!
    the only problems ar with scrolling buttons (tey go back and forward if there is the possibility to do it) and with the 9th button that simply doesnt work.....

    for the rest works great!

    anyway i don'use those buttons

  10. #10
    Join Date
    Apr 2005
    Location
    Oxford, UK
    Beans
    28

    Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

    I have a USB Optical IntelliMouse, and only needed to edit xorg.conf as follows to get the side buttons working in Firefox.
    Code:
    	Option		"Protocol"		"ExplorerPS/2"
    	Option          "Buttons"               "7"
    	Option		"ZAxisMapping"		"4 5"
    KISS in action

Page 1 of 14 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •