LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to bind Middle click (paste selected text) to keyboard shortcut (https://www.linuxquestions.org/questions/linux-general-1/how-to-bind-middle-click-paste-selected-text-to-keyboard-shortcut-295438/)

yozhhh 02-27-2005 07:36 AM

How to bind Middle click (paste selected text) to keyboard shortcut
 
Hi,
i'm using linux on a laptop. Middle click is not a simple task when i have no extern mouse but only a touchpad (left button+right button emulation is not a good solution).
How can i bind this operation (paste selected text) in X to the keyboard shortcut (Ctrl+Shift+V, for example)?

alex.flint 01-15-2009 04:53 AM

I would also like to know the answer to this question, for the same reason. I've looked at other related threads and none of them offer a solution.

tredegar 01-15-2009 05:46 PM

Why is "left button+right button" "not a good thing" ?
<CTRL>-V will paste, as will <SHIFT>-INSERT
If you are running KDE, take a look at klipper -it's very useful for managing your clipboard history.

Otherwise see man xmodmap

ectospasm 10-05-2010 02:08 AM

Quote:

Originally Posted by tredegar (Post 3410420)
Why is "left button+right button" "not a good thing" ?
<CTRL>-V will paste, as will <SHIFT>-INSERT
If you are running KDE, take a look at klipper -it's very useful for managing your clipboard history.

Otherwise see man xmodmap

What a lousy answer. man xmodmap doesn't tell you how to do this. I found a page with a neat set of scripts that seems to work great:

http://whynotwiki.com/GNU/Linux_/_De...oard_shortcuts << Note that my version of Google Chrome warned that this site may contain links to malware, so you have been warned.

I also was able to re-implement the Ruby script in Perl, just 'cuz. Let me know and I'll post my Perl way, but I will admit my Perl is really rusty, and the Ruby script seems much more elegant.

DavidMcCann 10-05-2010 04:25 PM

Thanks for that link. The mouse-based copying is one of the few justifications for the wretched rodent in my opinion, so I'll have to try it.


All times are GMT -5. The time now is 01:13 PM.