Quote:
Originally Posted by luofeiyu
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