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

100 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
891 views

xsel and xclip hang

My objective is to make a text on my remote machine (CentOS 7.2) available to seamlessly paste on my local machine (OS X 10.12.2) with the standard ⌘V shortcut. My setup connects to the remote ...
6
votes
2answers
5k views

automatically copy the selected content to clipboard

In one of my friend's system I have seen a very interesting feature. Whenever he selects a text/command from the terminal, the selected portion of text gets copied to clipboard automatically (without ...
5
votes
1answer
155 views

Pasting into terminal including comments issue

This is somehow a follow-up to my last question: Pasting multiple commands into terminal stops at user input Pasting the following to the terminal works as expected: ( echo test1 # some comment echo ...
5
votes
1answer
1k views

Copy between tmux sessions without including line numbers

When I try to copy and paste between tmux sessions or windows, one problem is that I usually have line numbers displayed when using Vim and tmux copies the line numbers: Is there any way to avoid ...
4
votes
2answers
437 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 ...
4
votes
0answers
359 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 ...
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 ...
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 ...
4
votes
0answers
434 views

How can I paste a gif from the clipboard with xclip?

I'm trying to copy a gif into my clipboard such that I would be able to paste it into web applications (slack, github, etc.). I have tried the following without any luck: xclip -selection clipboard -...
4
votes
0answers
402 views

For how long does a 'string' remain in clipboard/copy buffer and can it be manipulated?

I would start with a simple scenario so what I'm asking is easily understood. I usually have a text editor like leafpad, notepad++ or some text-editor as a scratchpad. I jot down things, ideas, ...
4
votes
2answers
1k views

How to use Ctrl+mouse click in tmux?

Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt, ...
3
votes
0answers
42 views

File conversion canary

Is there a way to tell if a flat ASCII log file, eg. the output of a command, was converted to an office document (typically: Word, Excel, Notepad) and back to a flat text file? I know at least one of ...
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 ...
3
votes
0answers
215 views

How to have screenshots send to the clipboard by default?

I'm using Kali Linux in a Virtual Machine and have to dump a great number of screenshots of the terminal to a document in another container. ALT + PRINTSCR takes a screenshot just fine but it writes ...
3
votes
1answer
814 views

xfce4-screenshooter creates something invalid in clipboard when taking screenshot

I installed xfce4-screenshooter-plugin on my xfce VirtualBox Debian 8 and. with use of xfce4-screenshooter --help I bound PrScr and Ctrl + PrScr to capture full screen and active window screenshots ...
3
votes
0answers
354 views

System clipboard is flushed out, once I exit vim

I use yy to access the system clipboard always. yy is mapped to a function as, function! Copy_ToSystemClip() .w !xsel -ob end function inoremap yy Copy_ToSystemClip()<CR> It copies to the ...
3
votes
0answers
125 views

Patching X11 to remove SELECTION clipboard

How would I patch the X11 source to disable or remove the SELECTION clipboard?
3
votes
0answers
3k views

Repair Citrix Clipboard functionality on Linux

I can no longer copy and paste between Citrix icaclient applications and local applications as was. The Citrix support states This issue occurs when a third party application inserts itself in the ...
3
votes
0answers
134 views

Why does selecting text only “copy” it (as in copy and paste) circumstantially?

One of the most user-friendly features of Linux is that highlighting or selecting text will automatically copy it so that it can be pasted upon a middle- click. However, this can also be a point of ...
2
votes
0answers
48 views

copyq paste works slow for terminal

I'm using Pop!_OS 20.04, gnome-terminal as terminal emulator, and CopyQ as clipboard manager. What I've noticed is, whenever I'm trying to paste in the terminal window (just a plain old local session, ...
2
votes
0answers
184 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-...
2
votes
0answers
155 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 ...
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
212 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 ...
2
votes
1answer
558 views

Unable to copy from VIM to clipboard using "+y command

I am unable to copy strings from vim paste them somewhere else, for example in the terminal, using "+y. I run Ubuntu on my laptop, the vim version is vim-gtk, it has xterm_clipboard and clipboard ...
2
votes
0answers
1k views

Copy-pasting image files into LibreOffice Writer doesn’t work from the Xfce desktop

I want to copy-paste image files into LibreOffice Writer. It works fine when copying the files within Thunar: the image appears in the document. It doesn’t work when copying the files from the Xfce ...
2
votes
3answers
281 views

Pasting “Foo” into LXterminal in XFCE produces “0~Foo1~”

I use LXTerminal 0.20. with XFCE 4.12.2 on Linux Mint 18.2 (upgraded from 18.1). When I copy text in some desktop app and paste it into an LXTerminal session, I get 0~ and 1~ prepended and appended, ...
2
votes
0answers
526 views

Vim remap text selection/copy/cut/paste to GUI editor standard (Ctrl+a, Ctrl+c, Ctrl+v etc)

Is it possible in Vim to Select text with Ctrl+A and Shift (+ Ctrl) + Arrows/Home/End Copy the selection to the system clipboard with Ctrl+c Cut the selection with to te system clipboard with Ctrl+x ...
2
votes
0answers
394 views

Effectively copy pasting (kill/yanking) with emacs running in tmux on Mac OS X

I am attempting to run emacs from within tmux (with emacs keybindings to avoid context switching) on Mac Os X and am having a real hard time getting copy/paste to work right. I am also attempting to ...
2
votes
0answers
172 views

Copy between tmux windows on a server from emacs

I am using emacs in one of my tmux windows on a server, when I yank within emacs (say c-k) text how do I make it available to other tmux windows. Cmd-c and cmd-v have buffers of my laptop. I would ...
2
votes
1answer
1k views

Copy text in byobu when the mouse is “off”

I recently started using byobu with tmux as a backend. I have learned that AltF12 toggles "mouse mode" off and on. When "mouse mode" is on, I can select text with my mouse and paste it with the middle ...
2
votes
0answers
587 views

RedHat5 stop copy on select

At work do we use RHEL5, with Gnome 2.28.2, we are also required to do development work in RHEL5. RHEL5 have this strange feature that it will replace the clipboard with anything i highlight. This is ...
2
votes
1answer
917 views

Paste clipboard content without X

I'm sshing into ArchLinux machine from Ubuntu. I want to be able to copy some text from Ubuntu and paste it into a file in Archlinux from terminal. xclip doesn't work for me, because I'm unable to set ...
2
votes
2answers
326 views

(X) copy/paste buffer overwritten by Firefox autocomplete/autosuggestion

Firefox replaces the X selection with partial URL when it auto completes an URL typed in the Location Bar. How can this be prevented? If I select some text with the mouse, I can then paste it ...
2
votes
0answers
32 views

Shortcut based clipboard management

I am aware of clipboard managers like copyq's existence, but using them requires clicking around and takes time. I woudl like something purely keyboard based, for using inside terminals. What I have ...
2
votes
1answer
1k views

Which log files do I look at to debug copy/paste and Klipper?

Short Version What log files do I look at to monitor copy/paste actions? And what logs do I look at to monitor all Klipper actions? Long Version After using my desktop for a while (could be a few ...
2
votes
0answers
112 views

KDE clipboard - dictionary integration

I'd like to know if there is a way to integrate a dictionary with KDE's clipboard tool (Klipper). I noticed that you can "Enable clipboard actions" which allows it to do stuff like detect URL's and ...
2
votes
0answers
60 views

Gnome: Make system text copyable

Here I use "system text" to refer to the text displayed in the GTK widgets (labels, menus, dialogs etc.) I would like to be able to highlight and copy any system text. I am using a locale with a non-...
2
votes
0answers
83 views

How do I detect a copy event in Finder?

I am trying to strip formatting from text copied from my Illustrator docs. Someone accurately pointed out to me that running pbpaste | pbcopy via command-line will perform this action on text in the ...
1
vote
0answers
16 views

How to save tmux clipboard buffers permanently so they persist after exiting the shell

In tmux, when yanking some text, it is saved in a list of buffers that we can view/paste from, I have yet to find how to make these persist, once I leave the shell and return, they are now gone. How ...
1
vote
0answers
59 views

can't copy screenshot in KDE/Debian 10

I have Debian 10 with KDE. Everything was working fine and suddenly today when I tried to copy a screenshot it didn't work. When I press the printscreen key, I get the popup showing the screenshot ...
1
vote
1answer
223 views

Alias to copy current directory path to clipboard through ssh linux

I am working on macos and on the terminal app I am connecting to a server which run on linux, through ssh -X (and I actually I should not be allowed to install any software on it). In order to save ...
1
vote
0answers
412 views

Arch linux: set copy/paste/cut shortcuts

I would like to set custom keyboard shortcuts for using clipboard. I would like to change it from: Copy: ctrl + c in programs, ctrl + shift + c in terminal Paste: ctrl + v in programs, ctrl + shift + ...
1
vote
0answers
117 views

xclip to multiple targets

How do I copy different texts to multiple targets using xclip (or other tools)? I tried doing echo "TEST_STRING" | xclip -selection clipboard -t STRING echo "TEST_HTML" | xclip -selection clipboard ...
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 ...
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. ...
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.
1
vote
0answers
231 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
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 ...
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 ...