Clipboard

From Things and Stuff Wiki
Revision as of 21:56, 12 July 2023 by Milk (talk | contribs) (→‎xclip)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


General

Selecting any text in Linux copies it and scroll-wheel middle click pastes it, separate to the Ctrl-c Ctrl-v clipboard. This means double clicking a non-line broke sentence copies it to the middle click paste clipboard.

This most used selection is the PRIMARY selection, and is used when the user selects some data. The CLIPBOARD selection is used when the user selects some data and explicitly requests it to be "copied" to the clipboard, such as by invoking "Copy" under the "Edit" menu of an application. An associated request of "Paste" results in the data of the CLIPBOARD selection being used.

"The PRIMARY selection is used when you select some text with the mouse. You usually paste it using the middle button. The CLIPBOARD selection is used when you copy text by using, for example, the Edit/Copy menu. You may paste it using the Edit/Paste menu."

Shift-Insert
  paste PRIMARY selection (where ctrl-v isn't supported)
Ctrl-v
  pate CLIPBOARD selection


Articles

Software

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.

Autocutsel

  • Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD selection. When the CLIPBOARD is changed, it updates the cutbuffer. When the cutbuffer is changed, it owns the CLIPBOARD selection. The cutbuffer and CLIPBOARD selection are always synchronized. Since the VNC client synchronizes the Windows' clipboard and the server's cutbuffer, all three "clipboards" are always kept synchronized.

xcmenu

XSel

  • XSel - a command-line program for getting and setting the contents of the X selection. Normally this is only accessible by manually highlighting information and pasting it with the middle mouse button.

CopyQ

  • CopyQ is clipboard manager with searchable and editable history.

Parcellite

clipcat

Other

wl-clipboard