Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-27-2005, 07:36 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.1
Posts: 26

Rep: Reputation: 15
How to bind Middle click (paste selected text) to keyboard shortcut

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)?
Old 01-15-2009, 04:53 AM   #2
LQ Newbie
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
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.
Old 01-15-2009, 05:46 PM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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

Last edited by tredegar; 01-15-2009 at 05:48 PM. Reason: remembered shift-insert
0 members found this post helpful.
Old 10-05-2010, 02:08 AM   #4
LQ Newbie
Registered: Oct 2010
Posts: 4

Rep: Reputation: 3
Originally Posted by tredegar View Post
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: << 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.

Last edited by ectospasm; 10-05-2010 at 03:47 AM. Reason: update with security warning
Old 10-05-2010, 04:25 PM   #5
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,306

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome - Middle mouse is paste. Can it be remapped? TheJkWhoSaysNi Linux - Hardware 1 05-21-2011 04:46 AM
help: cannot use middle mutton to paste parv Linux - Hardware 1 07-07-2005 09:18 PM
Keyboard Shortcut for X middle mouse button yozhhh Linux - Software 2 08-03-2004 09:23 AM
Disabling middle click paste. Pyroknight Linux - Software 6 04-20-2004 07:32 PM
pasting the selected text with right click works strange raft Linux - Hardware 0 12-06-2003 01:34 PM

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration