[openbox] How to assign "Middle-Mouse-Button-Click" to a Key-Binding?

Eric Bohlman ericbohlman at sbcglobal.net
Fri Feb 26 17:55:05 EST 2010

John wrote:
> i want to have a keyboard-shortcut/keybinding for my
> middle-mouse-button, so that i can easily copy&paste from and to
> terminals and vim without using the mouse.
> As far as i understood i can assign Actions to Keys (like A-F10 for
> ToggleMaximizeWindow) and i can assign Actions to Mousebuttons - but
> can i assign Mousebuttons to Keys?

You could write a binding to invoke xdotool or something similar.

Also, if you're using a desktop keyboard with a numeric pad, the keypad 
"*" will simulate the middle button if you enable MouseKeys (this is on 
any X implementation, not just OB).

More information about the openbox mailing list