Page 1 of 1

How to bind keyboard keys to mouse buttons

Posted: Wed Mar 26, 2014 11:09 am
by turnipsi
Hi,

I've been trying to bind keyboard keys to mouse buttons. E.g I want that my button6 (thumb) will send and "F5" (function key 5) to the frame.
Or I would like my mouse wheel left (button8) to send "ALT+Left" to the current frame. I've been searching the docs about ACTIONS what you can do in
your lxde-rc.xml, but there is nothing how to do that. You can easily rebind keys to others, and I can bind other actions to mouse buttons just fine,
like starting programs etc.

How do I do this?

Re: How to bind keyboard keys to mouse buttons

Posted: Fri Mar 28, 2014 12:28 am
by Rex Bouwense
Welcome to the LXDE forum. I did a very quick Googlubuntu search and found this
https://help.ubuntu.com/community/ManyButtonsMouseHowto
In reading some of the other responses, they seem to involve using the Compiz Config Manager. You can search yourself using "bind keyboard keys to mouse buttons" and read the results yourself.

Re: How to bind keyboard keys to mouse buttons

Posted: Fri Mar 28, 2014 6:58 am
by turnipsi
Hi!

Thank you for your answer. I see it can be done via other programs, I was sort of hoping it could be done via lxde:s own configuration.
Like for example:

<context name="Frame">
<mousebind button="Button9" action="Click">
<action name="Keybind">
      <keybind>A-Left</keybind>
</action>
</mousebind>
....

That would be really easy, since lxde already recognizes all the mouse button presses.