Questions tagged [xclip]
xclip is a command line interface to the X11 clipboard. It can also be used for copying files, as an alternative to sftp/scp, thus avoiding password prompts when X11 forwarding has already been setup.
56 questions
2 votes
1 answer
689 views
nano command execution stuck
In nano v8.0 there's an option to send selection to X clipboard in the nanorc: "{execute}|xsel -ib{enter}{undo}" which does perfectly. I tried using xclip utility instead: "{execute}|...
0 votes
0 answers
53 views
Are there two different clipboards? Why does copy/paste work differently depending upon keys used (shift-insert & ctrl-v)? [duplicate]
It's as if there are two different system clipboards (stash places for copied text), with two different ways of accessing them. I've noticed this for quite some time but never been able to narrow it ...
1 vote
1 answer
357 views
Disable automatically copying selection to clipboard in urxvt
There are 2 kind of clipboards on my os (manjaro i3). Xclip, which keeps the last selected text, and the regular clipboard which must be explicitly copied. I have noticed urxvt copies selected text in ...
2 votes
2 answers
1k views
No new line when piping into xclip
Is there something I can do so that whenever I pipe something into xclip it does not include a new line at the end? As a workaround, I am using echo -n $(CMD_TO_COPY) | xclip, but it's kind of ...
2 votes
0 answers
532 views
How to paste selection from vi-mode to clipboard
I want to access the content of what I copied in the buffer with the vi-mode of the clipboard via the command ctrl + v or ctrl + shift + v in the terminal. I copied in my .zshrc the following: (from ...
1 vote
2 answers
569 views
Why tldr | xclip outputs escape codes looking like timestamp, and how to remove it?
Problem I want to copy the output of tldr to clipboard, and then paste that to text editor. I execute: tldr pwd | xclip -sel clip When I paste from clipboard, I get: pwd [0mPrint name of current/...
3 votes
2 answers
2k views
Linux clipboards, including with WSL consoles
It occurred to me that there are multiple clipboards on any given Linux console: First is the bash clipboard, this can be invoked by Ctrl-U / K, cut all line before (U) or after (K) cursor into ...
0 votes
1 answer
296 views
Setting an alias for copying the current path from shell to clipboard fails [duplicate]
I have added the following alias to my .zshrc: alias pwdc="echo -n $PWD | xclip -selection clipboard" it seems the present working directory is not getting updated, when I move to a ...