LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-27-2005, 07:36 AM   #1
yozhhh
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


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)?
 
Old 01-15-2009, 04:53 AM   #2
alex.flint
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
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
ectospasm
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 3
Quote:
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:

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.

Last edited by ectospasm; 10-05-2010 at 03:47 AM. Reason: update with security warning
 
Old 10-05-2010, 04:25 PM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:53 AM.

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