How to bind keyboard keys to mouse buttons

Please post all general support questions for LXDE here.
Locked
turnipsi
Posts: 2
Joined: Wed Mar 26, 2014 11:03 am

How to bind keyboard keys to mouse buttons

Post 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?
Rex Bouwense
Posts: 1109
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: How to bind keyboard keys to mouse buttons

Post 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.
Rex
turnipsi
Posts: 2
Joined: Wed Mar 26, 2014 11:03 am

Re: How to bind keyboard keys to mouse buttons

Post 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.
Locked