Announcement

Collapse
No announcement yet.

Mouse multimedia buttons - xbindkeys mouse detection

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mouse multimedia buttons - xbindkeys mouse detection

    Hi all. Can anybody give me some pointers for getting my mouses additional buttons to work?

    I've installed xbindkeys and have been playing with it, but I'm having trouble identifying what b:? value to use for the various buttons. I've tried the xbindkeys -k command but that seems to only be detecting keyboard presses, not mouse input. Is there another way to determine what button is what on the mouse so I can fill out the rest of the xbindkeys config file? Thanks!
    Cheers, MH

    #2
    OK, I've figured out the mouse mappings. For anybody interested, here are the mouse mappings for xbindkeys and the Logitech MX Revolution Mouse

    Code:
    b:4 - Scroll Up
    b:5 - Scroll Down
    b:6 - Left Scroll
    b:7 - Right Scroll
    b:8 - Back
    b:9 - Forward
    b:13 - Thumb Scroll up
    b:15 - Thumb Scroll Down
    b:16 - Thumb Wheel press
    Last edited by magichands; Jan 07, 2017, 11:35 PM.
    Cheers, MH

    Comment


      #3
      Ok, so I've gotten it to work using a combination of xbindkeys and xdotool.

      So for others, here are the steps I completed.

      1. Install xbindkeys
      Code:
      sudo apt-get install xbindkeys
      2. Create a default xbindkeys config file
      Code:
      xbindkeys -d > ~/.xbindkeysrc
      3. Install xdotool
      Code:
      sudo apt-get install xdotool
      4. Add the following lines to the ~/.xbindkeysrc file
      Code:
      #VOL UP
      "xdotool key XF86AudioRaiseVolume"
      b:13
      
      #VOL DOWN
      "xdotool key XF86AudioLowerVolume"
      b:15
      
      #VOL MUTE
      "xdotool key XF86AudioMute"
      b:16
      Last edited by magichands; Jan 07, 2017, 05:55 PM.
      Cheers, MH

      Comment


        #4
        Thank you.

        John Little
        Regards, John Little

        Comment

        Working...
        X