LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2017, 12:14 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 220

Rep: Reputation: Disabled
How to right click mouse to paste with mouse?


os:debian8.
Code:
sudo  apt-get install xclip
xclip -i  /etc/passwd
Now the file /etc/passwd was copied into clip board.
To open a new blank file with leafpad ,click middle bottun on your mouse,
the content in /etc/passwd was pasted into leafpad.

I want to get a xclip command ,to copy file ,just right click your mouse to paste the content in /etc/passwd into new blank leafpad file.

How to write the clip command?
 
Old 04-19-2017, 02:09 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,490

Rep: Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532
I do not really understand, do you want to use right click instead of middle button, or ??
 
Old 04-20-2017, 07:29 AM   #3
luofeiyu
Member
 
Registered: Aug 2015
Posts: 220

Original Poster
Rep: Reputation: Disabled
yes, to use right click instead of middle button.
 
Old 04-20-2017, 08:26 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,490

Rep: Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532
it is not handled by xclip, but the X window system itself. You need to reconfigure the mouse buttons, and I think that will not really work that way. Probably you can check Xresources too. https://en.wikipedia.org/wiki/X_resources (see links at the bottom too)
 
Old 04-20-2017, 10:19 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by luofeiyu View Post
os:debian8.
Code:
sudo  apt-get install xclip
xclip -i  /etc/passwd
Now the file /etc/passwd was copied into clip board.
To open a new blank file with leafpad ,click middle button on your mouse,
the content in /etc/passwd was pasted into leafpad.

I want to get a xclip command ,to copy file ,just right click your mouse to paste the content in /etc/passwd into new blank leafpad file.

How to write the clip command?
man xclip

1.xclip got to get focus of whatever it is
2.xclip got to get into whatever it is
3.xclip got to select whatever it is
4.xclip got to copy whatever it is

5.xclip got to get focus of the other whatever it is
6.xclip got to get into that other whatever it is
7.xclip got to then paste whatever it got into the other whatever it is

[assign to middle button on click event]


man xclip

Though I do not know why you'd want to put yourself through all of that to use the middle button.

When the right button can already do this.

regardless you're missing your implementation.

what is your implementation on this?

when you figure that out.

to short cut a lot of that if not all of it.

access -> right click menu -> paste

Last edited by BW-userx; 04-20-2017 at 10:37 AM.
 
Old 04-21-2017, 12:03 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
luofeiyu,

I wish you all the luck in the world. So, you've got that going for you.
 
  


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
Mouse not working on Damn Small Linux | Mouse: Omega Optical Mouse (16c Gaming Mouse) AndyDeveloper Linux - Hardware 3 04-09-2017 01:32 PM
How do I disable middle mouse button click paste in Xorg/X11? patrick295767 Linux - Desktop 2 01-16-2017 02:55 PM
[SOLVED] Unable to paste with mouse wheel click erik2282 Manjaro 0 06-19-2016 09:45 AM
Wireless mouse/kboard combo - require a click everytime for mouse to work godfrank Linux - Hardware 2 10-02-2006 06:26 PM
middle mouse button is paste.. but what if i dont have a mid mouse button? kublador Linux - Newbie 4 09-02-2003 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:15 PM.

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