Results 1 to 5 of 5

Thread: How to get all those extra mouse buttons to work

  1. #1
    Join Date
    Mar 2010

    How to get all those extra mouse buttons to work

    I just bought a logitech m510 mouse. It has extra buttons. The scroll wheel even has a side to side click thingy. I'm wondering how to make use of these extra buttons--in particular when activating compiz effects. I know button1 is left click, and button2 is right click, and I also see button3 (i think this is pressing down the scroll wheel) and button4 (i think this is scrolling up), but what about the buttons on the side of the mouse (there are 2 on the left side and none on the right, and I think the extra articulations on the scroll wheel count as some sort of buttons as well).

    On a similar note, I remember back in 2010 when I was trying ubuntu that I was able to initiate the ever famous desktop cube by holding down button1 and button2 at the same time, but I can't find out how to set that up again (I know the cube has issues in the new desktop, but knowing how to activate SOMETHING using this combination would help me.)

  2. #2
    Join Date
    May 2007
    Virginia, USA
    Ubuntu Mate Development Release

    Re: How to get all those extra mouse buttons to work

    See the attached link on remapping keys -- if xev shows button info when pressing the buttons, there is hope for you:
    Ubuntu 17.04 Mate, Mint 18.1 Mate; MS Win 8.1, MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  3. #3
    Join Date
    Feb 2007

    Re: How to get all those extra mouse buttons to work

    I use the M510 on my laptop with a combination of 'xbindkeys' and 'xautomation'...both installable from synaptic or terminal.
    I use a custom file in my home profile (.xbindkeysrc) that uses a combination of keys and buttons or remapping buttons to keys (e.g. back and forward). Here is an example .xbindkeysrc:

    # use 'xev' to find key codes.
    # xbindkeys for button assignments.
    # xautomation (xte) for key assignments.
    # b:1  -  left mouse button
    # b:2  -  wheel button
    # b:3  -  right mouse button
    # b:4  -  mouse wheel up
    # b:5  -  mouse wheel down
    # b:6  -  mouse wheel left
    # b:7  -  mouse wheel right
    # b:8  -  back side button
    # b:9  -  forward side button
    # Exit Programs
    "xte 'keydown Control_L' 'key F4' 'keyup Control_L' "
    # Shutdown
    "sudo shutdown -h now" 
      Alt + Control + b:2
    # Reboot
    "sudo init 6" 
      Control + mod4 + b:2   #mod4 = Super
    # Terminal
      Control + b:2
    "gksu gnome-terminal"
      Alt + b:2
    # Internet
    "firefox-trunk -P trunk"
    "firefox -P firefox"
      Control + b:8
    # File Browsers
    # History Back & Forward
    "xte 'keydown Alt_L' 'key Left' 'keyup Alt_L' "
    "xte 'keydown Alt_L' 'key Right' 'keyup Alt_L' "
    Clevo/Sager i7-2670 | 8gb ram | ATI 6970 | SSD drive | [I] Ubuntu: 14.04 / 13.10 /

  4. #4
    Join Date
    Mar 2010

    Re: How to get all those extra mouse buttons to work

    I just noticed that firefox recognized the extra buttons already. The side to side scroll wheel clicks scroll side to side (who knew!) and the two buttons on the side are the back and forward buttons. I just wanted to know that "numbers" each of these buttons where so I can take advantage of them in other apps.

  5. #5
    Join Date
    Dec 2007
    Ubuntu 9.10 Karmic Koala

    Re: How to get all those extra mouse buttons to work

    XGen: Just wanted to thank you for that. BTNX isn't in 12.04 anymore, which is what I used to use. It was nice that it was graphical, but this was impressively easy and fast to set up.
    Desktop | Intel E8400 3.0GHz Core2 Duo | 4GB RAM | 2TB | Intel X-25 40gb SSD | Ubuntu 10.10
    Personal server | AMD 2.0GHz Dual Core | 1GB RAM | 160GB | Ubuntu Server 10.04
    HP Mini 311 | Atom 1.66ghz | 160gb | 1GB RAM | Ubuntu Netbook 10.10


Posting Permissions

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