LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2014, 06:34 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 635
Blog Entries: 1

Rep: Reputation: 48
enable middle button click to paste


Hi, I have an old mouse that could do hightlight and then I can paste by clicking
the middle button. Very nice, I enjoy it thoroughly. This mouse is over 10 years old and still much alive and `clicking'.

Now, the new mouses do not seem to support this by default. I have to hightlight
the text, right click, choose copy, bring to the desired place, right click, and
choose copy. In term of old efficient and elegant way, this is both frustrating and timing consuming.

I looked up the web but found none. But at least this post will keep me to hunt down
the solution when I have time to visit this issue.

xfig relies on middle button a lot, so I have trouble with xfig lately, but then
I don't use xfig a lot and xfig is rather old so it won't as much.

---------- Post added 11-12-14 at 08:35 AM ----------

BTW, I am using CentOS 6.x series on all platforms.
 
Old 11-11-2014, 06:42 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 528

Rep: Reputation: Disabled
Similar situation here. For years I used a Logitech 3-button roller-ball mouse. That's 3 real buttons, no wheel. I liked it a lot, but it used the PS/2 interface and that is becoming scarce. So now I have a Logitech USB wheel mouse.

But the wheel button should work exactly like the middle button on your mouse did. In Xfig, for example. Press, not roll, the wheel = button 2. Mine certainly works.

Also there is a functional difference between copy/paste with left and middle buttons, versus using a menu, copy, and menu, paste. Both work for me, but not in all programs. I think the difference is in which X "clipboard" (buffer) they use.
 
Old 11-11-2014, 06:53 PM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 635

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Just want to report back, at least my first post keeps focus to solve this problem once and for all.

I just changed /etc/X11/xorg.conf to

Quote:
Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
# Option "Emulate3Buttons" "no"
Option "Emulate3Buttons" "yes"
Option "ZAxisMapping" "4 5"
EndSection
It was working the first time I cut and paste from text in xterm. But when I try to paste the text
above to firefox, the middle click paste does not work anymore. This is more frustrating since it works and sometimes it doesn't and
the behaviour changes based on the circumstances. Without a good theory of how things work can waste a lot of time trying..
Aarh..
 
Old 11-11-2014, 07:01 PM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 635

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I do by trial and error, now pressing both left and right buttons seems to work robustly. Forget about the middle button or the wheel button ?
 
Old 11-11-2014, 07:05 PM   #5
centguy
Member
 
Registered: Feb 2008
Posts: 635

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Even xfig knows pressing both left and right button simultaneously means paste. Okay, at least the problem is solved but I have to remember to
change my clicking behaviour.
 
Old 11-11-2014, 08:18 PM   #6
ljb643
Member
 
Registered: Nov 2003
Posts: 528

Rep: Reputation: Disabled
Yes, 'Option "Emulate3Buttons" "yes"' means pressing left and right together emulates the middle button. But you should not need this or use it. It is meant for 2-button mice. What kind of mouse do you have (2-buttons plus wheel with wheel button, I assume). Actually you should not need an InputDevice section in your xorg.conf, and X should ignore it on systems that can detect hardware.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot middle click paste from Aterm to Opera. Can from other terminals????! bennyt Linux - Software 6 01-06-2011 06:29 AM
vim won't paste on middle click anymore slackhack Linux - General 4 07-01-2007 11:09 PM
alter middle click paste Four Programming 3 04-30-2007 03:43 PM
middle click paste only works sometime and how to config other buttons? zeltak Linux - Software 3 02-16-2006 09:53 AM
Disabling middle click paste. Pyroknight Linux - Software 6 04-20-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:28 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