Unfortunately my middle mouse-button is broken. Is it possible to define a keyboard shortcut that'll do the same thing as the middle mouse-button (paste text from XA_PRIMARY)? (I'm using openbox for managing my windows.)

Thanks in advance!


You can use the "Shift + Insert" key bindings for most applications.
If you install the xdotool command, you can also send a click event on the command line.

$ xdotool click 2
  • 1
    Great, sending click events from the command line, now I can bind this to a keyboard shortcut. Thank you! – RazGo Jun 11 '15 at 19:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.