astrand / xclip

Command line interface to the X11 clipboard
GNU General Public License v2.0
1.04k stars 75 forks source link

the content copied by xclip only can be used in the terminal with shift+iinsert not same with copy by ctrl + c #82

Closed woshichuanqilz closed 4 years ago

woshichuanqilz commented 4 years ago

xclip version 0.13 wm: i3 os: manjaro 20 shell: fish

Here is the thing.

I run command uptime | xclip in the terminal. The situation is:

How to solve these problems?

Kratacoa commented 4 years ago

This is probably relevant to the terminal emulator you're using (which you didn't mention).

woshichuanqilz commented 4 years ago

This is probably relevant to the terminal emulator you're using (which you didn't mention).

alacritty I will try konsole later

Kratacoa commented 4 years ago

Sorry for the comment above, it's misguiding.
You are using the PRIMARY clipboard, not the CLIPBOARD which is usually referred to by the keys you mentioned. To select the latter, add -sel clipboard as by the manpage.
Reference: https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

woshichuanqilz commented 4 years ago

Sorry for the comment above, it's misguiding. You are using the PRIMARY clipboard, not the CLIPBOARD which is usually referred to by the keys you mentioned. To select the latter, add -sel clipboard as by the manpage. Reference: https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

Thank you done.