Questions tagged [clipboard]

A clipboard is a temporary storage, mostly related to text, from where contents can be pasted to a new/other location. Use this tag for questions that specifically involve problems with putting material in, or getting material out of the clipboard

Filter by
Sorted by
Tagged with
1
vote
0answers
43 views

How can i subscribe to linux commands or processes

I want to build a minimal clipboard manager script using xclip or xsel. So I want to be able to know when xclip is going to store the new clip, an then I can update a clipboard_history file for ...
0
votes
1answer
60 views

Can a Bash alias command be inserted into my macOS terminal text input so I can tweak and run it?

I have some Bash aliases which I use to perform standard day-to-day tasks in my macOS terminal using the Bash shell. Sometimes I find myself wanting to run a one-off command very similar to an alias ...
0
votes
1answer
488 views

How can I synchronize the clipboard of terminal applications on a server without X?

On machines with X server, I've used the selection clipboard to synchronize copy/paste across GUI and terminal programs. Now I have a server without X where I'd like to synchronize copy/paste across ...
1
vote
1answer
25 views

How do I get cut-n-paste to work for remote X clients

I've ssh-ed into a Debian computer from a Ubuntu computer (via an intermediate computer) and have problems getting cut-n-paste to work. Neither can I select text and insert that using middle-click. ...
4
votes
2answers
432 views

Shared clipboard between multiple X11 servers (Xephyr, Xpra etc.)

I plan to run potentially dangerous applications (browser, etc.) on a separate X-server, but since each server has its own clipboard, it is impossible to copy the link / text from one window to ...
1
vote
1answer
55 views

Remove newlines using shell command (must work in a KDE global shortcut)

I need a shortcut to strip newlines from the text in the current selection. I want to put my command into a KDE global shortcut, which I already know how to do. The command I came up with is: sh -c '...
4
votes
0answers
356 views

Copy text from remote tmux to local x clipboard

I ssh into my VPS and run tmux. I can copy/paste from the remote to local, and local to remote - using the mouse and shift. But I don't know how to copy large quantities of text. If I were working ...
2
votes
0answers
182 views

Copy any kind of file to clipboard with xclip

So, I want to be able to copy any kind of file to an X clipboard with a shell script (mostly as a means to copy files in ranger, to gui applications). So far i have this script: TYPE=$(file -b --mime-...
0
votes
0answers
444 views

Can I disable pasting a newline character in my terminal?

I'm using ZSH on Mac OS if that is important. When doing some manual cherry picking on branches in git, I sometimes would like to type git checkout origin/develop --<path> where I copy and paste ...
1
vote
1answer
137 views

How to keep heading tab when copy-paste in tmux

Follow below tips Copy text from one tmux pane to another (using vim) Seems all the heading tab will be replaced by space during copy-paste, I want to know is any tips to keep all the heading tab.
3
votes
2answers
698 views

how can I slow down pasting text into a serial terminal?

I'm working on a raspberry pi, and trying to paste some text files into a command-line text editor nano... but the text ends up corrupted on the remote end (partial/incomplete text). I can only guess ...
0
votes
1answer
65 views

Firefox download file and copy to clipboard

For academic research I work with Firefox and many sites have the option to export entries as Bibtex files which opens a download dialog. I'm looking for a way to directly copy those files to the ...
1
vote
2answers
309 views

Replace clipboard content instead of appending when copying from tmux

When I copy from tmux, selections are appended to the system clipboard rather than replacing its existing content. I see this behavior both with mouse drag and release, and using the keyboard to copy ...
1
vote
0answers
229 views

xRDP autostart Applications, Clipit problem

The Problem: The company I work for has branched to another location a couple of days ago and our inhouse software has trouble keeping up with the data it sends and receives (in other words: Users ...
1
vote
1answer
129 views

Enable copy/paste in vim on bare Linux

I'm using vim on Linux Debian without desktop environment (i.e xorg, i3, urxvt). I'm not unable to copy and paste ("+, "* not work), because clipboard package is not installed: └> vim --version | ...
0
votes
2answers
785 views

Enable copy/paste on bare Linux inside VMware

I explore Linux by installing and configuring it from scratch (i.e. no gui, bare terminal). I installed only xorg, i3, gnome-terminal and few other utilities. Besides, I've installed open-vm-tools to ...
4
votes
0answers
79 views

Separate clipboard for particular application

Is it possible, on Debian with Klipper running, to have a separate "clipboard stack" for a particular application? I'd like the text that I copy in application Y not to be shared with all the other ...
0
votes
0answers
15 views

Separate clipboard for torbrowser [duplicate]

I'm running torbrowser on Debian. klipper saves the history of my clipboard. I would like to desactivate this feature for tor browser, so that I can use the copy-paste functions "locally", without ...
1
vote
0answers
234 views

Copy large texts to clipboard in X11

If I try to copy a large file (around 30K) to clipboard with xsel (or xclip), the copy operation fails and the content of clipboard remains unchanged. If it's a hard limit in X11, is there any way to ...
3
votes
0answers
61 views

Cut Paste shortcuts issue

I hope to get some help here. I really don't know how to tackle this issue that I'm experiencing in the last days. In the last few days, ctrl+c and ctrl+x work randomly in every application. For ...
1
vote
3answers
66 views

use less on content in clipboard

I copied some text and want to search through it using less. I wonder how I can directly use less on my clipboard content without having it saved first into a file or being echod etc.
2
votes
0answers
154 views

How to analyze an accidental copy/paste in the terminal?

While I was trying to copy and paste a command line from a web page, I somehow managed to copy/paste the source code of the entire page, with all the tags and so on (don't ask me how). This is the ...
1
vote
1answer
930 views

Copy & Paste unusable in KVM virtual machine (Ubuntu) when RStudio is running

Setup: Fedora 30 with a KVM/qemu virtual machine running Ubuntu 18.04.1. (This setup because I want to run RStudio and on my Fedora 30, and it just barfs & dies immediately somewhere in the ...
2
votes
4answers
2k views

How to copy/paste from xfce4-terminal to another xfce4-terminal while in vim?

Copy/paste has never worked properly in all cases in GNU/Linux, for decades, and this problem is still not fixed. I find myself with two xfce4-terminal instances, terminal A and terminal B. Terminal ...
4
votes
0answers
1k views

Copy image to clipboard with xclip doesn't work properly

So, I tried the following xclip -se c -t image/png -i imagefile.jpg This does indeed copy the image into clipboard, and I can paste it into gimp, or paste it into a new image file as in the ...
0
votes
1answer
62 views

Shell command to set tmux clipboard

I sometimes run a command like this to set the system clipboard, because I want to paste the result of whatevercommand into a text editor, terminal, or whatnot. whatevercommand | xclip -selection c ...
0
votes
1answer
104 views

How to use existing terminal session to save output with ANSI escape code like `script` or `screen -L` do?

I run a python script on konsole to print long logging for few hours, then I realized I want to save its output with color, but it's too late to run either script or screen -L to save the output as ...
1
vote
1answer
406 views

Copy a row in a CSV file based on a value in another column

I have a file of 800+ rows. Each row has a certain number of individuals we have to measure a trait on (n = 3, 5 or 10). I would like to expand the file so each individual has their own row based on ...
0
votes
1answer
98 views

copy paste from debian buster doesn't work on MS-Windows 10

I have been working on a computer which apparently has Debian buster as well as MS-Windows 10 1903 . On the said machine before you could copy and paste files and folders without an issue. In some ...
2
votes
0answers
19 views

Clipboard trims whitespace on last line in Debian Stretch (GNOME)

I've noticed that when I copy and paste something, the last line, which may have been indented, is no longer indented when I paste. For example, this: class Migration(migrations.Migration): ...
2
votes
1answer
26 views

Pbcopy acts as Pbpaste when symlinked

To keep my configs sane between environments, I thought it's a great idea to do the following on MacOS. ln -s /usr/bin/pbcopy /usr/local/bin/xclip However, my xclip symlink does not act just as ...
2
votes
1answer
211 views

Short command or alias to copy last command to clipboard

Often I'd like the command I just typed to put into the clipboard, and I'd like to do it from the command line. I came up with: alias cl="fc -ln -1 | sed 's/^\s*//' | xsel -b" To alias cl to that ...
1
vote
1answer
118 views

Can I make characters uncopyable in a terminal emulator?

I run fish (in gnome-terminal) with a custom style that gives me information about the current Git repository: That's all very fine, but when I want to copy-paste some command with its output like so:...
3
votes
1answer
394 views

Using multiple copy buffers in Bash

Ctrlu cuts text from current location to the beginning of line. Now, I can paste this with Ctrly whenever I want until the next time I hit Ctrlu to copy another line in the buffer. Now the problem I ...
2
votes
2answers
487 views

Pasting multiple lines so that they consistently execute

Here's an example of a very simple code snippet that I'd like to paste to my terminal in a way that everything is executed. sudo apt update sudo apt upgrade sudo apt -y install build-essential sudo ...
0
votes
0answers
2k views

GNOME Terminal 2 mouse copy/paste not working

Marking text with mouse left-button in a GNOME Terminal 2 window does not place it into the clipboard, so it can be pasted with mouse middle-button. When pasting I instead get text I have copied to ...
0
votes
2answers
790 views

How to get file path which was selected and make copy in dolphin KDE and paste on zsh?

➜ ~ cat .zshrc | grep xclip alias c="xclip -selection c" alias -g v='"$(xclip -selection c -o)"' ➜ ~ v zsh: 没有那个文件或目录: file:///home/roach/Downloads/pure.png ➜ ~ The Chinese words "没有那个文件或目录" ...
10
votes
2answers
13k views

QEMU/KVM Windows 10 Guest won't copy/paste text or files back to host

I am running Debian 9 (Stretch) with QEMU/KVM hosting a Windows 10 - 1809 guest. Using Spice for graphics. I installed SPICE Guest Tools 0.141 and am able to copy/paste files and text from my Debian ...
6
votes
4answers
8k views

How do I copy and paste with Kitty?

Kitty is a terminal for Linux. How do I copy and paste with it. CTRL+c does not work? And there is no option on right click. Right-click also doesn't work for copy.
0
votes
2answers
138 views

How to grab x characters long of start text from xclip selection and append to filename?

So I am trying to figure out how to add a title after the timestamp in my xclip script here. I would like it to grab about 24 characters worth of text from the beginning of each selection and save it ...
1
vote
1answer
1k views

How to copy/paste text using the mouse from one tmux instance in one terminal emulator to another tmux instance in a different terminal emulator?

How can I copy some text using the mouse, between two terminal emulator instances, each running its own instance of tmux? I've read this: How to copy and paste with a mouse with tmux And various ...
1
vote
1answer
114 views

How to get clipboard as input file name to Vim on bash?

I install xclip to access system clipboard, my setting and some operations as below: ➜ ~ cat .zshrc | grep xclip alias c="xclip -selection c" alias v="xclip -selection c -o" ➜ ~ which dict | c ➜ ~ ...
1
vote
0answers
61 views

Vim editor universal config for copy/paste on multiplatform environment does it exists? [closed]

I spend a lot of time to get comfortable working with Vim, and I am there right now, except one thing. Also it look like Vim has advantages in many cases working on embedded programming or kernel ...
1
vote
0answers
30 views

Can I refer to current clipboard content as a file?

I'd like to select-and-copy some text to clipboard and then to send it via Bluetooth to my phone. But this requires to open a file to send. Well, I know about programs like xsel or xclip, but here it ...
0
votes
1answer
135 views

Konsole does not participate in either clipboards for one user

We use Debian 9 with the Xfce desktop at work. One user uses both xfce4-terminal and konsole. For some reason he cannot copy text from Konsole using neither mouse selection and middle click nor the ...
1
vote
1answer
1k views

Ubuntu 18 Tmux 2.6-3 copy paste functionality with xclip non functional

I recently did a fresh Ubuntu 18 install and copied over my home directory from my previous Ubuntu 16 setup. However this seems to have broken the copy paste functionality I had previously with xclip (...
0
votes
1answer
528 views

How to use clipboard data in bash script? [duplicate]

I very often use a simple curl command to get IP addresses details. curl ipinfo.io/111.222.333.444 Almost everytime I got the IP address in the clipboard Is there a way to use a bash variable to ...
4
votes
3answers
12k views

Cut/Paste stopped working for me

I am using Debian Sid/unstable. After a rather large set of installation (changing desktop from cinnamon to gnome) I got a completely non-functional clipboard. I literally cannot copy/paste in any ...
-1
votes
1answer
985 views

Can't Paste any Texts [duplicate]

I just download some Desktop Environment for my Kali Linux. Then at second usage (after reboot), I tried to copy MAC Address in terminal. But when I click Paste, the text can't even show in my screen. ...
1
vote
0answers
109 views

xclip copy file so it can be pasted as a file (not file content) [duplicate]

How can I copy a file with xclip, so that it is pastable as a file in file explorers? I searched on google an so on and found stuff like this Copy file to xclip and paste to Firefox, but there it is ...

1
2
3 4 5
9