LinuxCommandLibrary

copyq

Manage clipboard history with advanced features

TLDR

Launch CopyQ to store clipboard history

$ copyq
copy

Show current clipboard content
$ copyq clipboard
copy

Insert raw text into the clipboard history
$ copyq add -- [text1] [text2] [text3]
copy

Insert text containing escape sequences ('\n', '\t') into the clipboard history
$ copyq add [firstline\nsecondline]
copy

Print the content of the first 3 items in the clipboard history
$ copyq read 0 1 2
copy

Copy a file's contents into the clipboard
$ copyq copy < [path/to/file.txt]
copy

Copy a JPEG image into the clipboard
$ copyq copy image/jpeg < [path/to/image.jpg]
copy

SYNOPSIS

copyq [options] [command [arguments]]

PARAMETERS

--help
    Show help message and exit.

--version
    Show program version and exit.

--config
    Specify configuration file.

--instance
    Specify instance name.

--tray-icon
    Show tray icon.
Default: true

--no-tray-icon
    Hide tray icon.

copy
    Copy text to clipboard.

paste
    Paste text from clipboard.

read
    Read item from clipboard.

write
    Write to clipboard.

DESCRIPTION

CopyQ is a free and open-source clipboard manager with powerful features. It monitors the system clipboard and saves its content in customizable tabs. You can then browse, edit, and filter the history of copied items. CopyQ supports plain text, images, HTML, and any other custom formats. Its advanced features include command-line interface, customizable hotkeys, scripting capabilities (using JavaScript), and support for multiple clipboards. It allows you to organize items into different tabs and supports tagging for better management. CopyQ can also be integrated with various applications through its command-line interface, allowing you to automate tasks related to clipboard manipulation. The tool is highly configurable and can be tailored to suit individual workflows and needs, increasing productivity by providing efficient access to frequently used clipboard content.

CAVEATS

CopyQ relies on system clipboard functionality, so its performance and compatibility can be affected by the specific desktop environment or other clipboard managers. Scripting capabilities require some programming knowledge.

SCRIPTING

CopyQ's scripting capabilities allow automating tasks and extending its functionality. Scripts can be written in JavaScript and triggered by various events, such as clipboard changes or hotkeys.
This enables custom filtering, formatting, and other advanced clipboard manipulations.

TABS

CopyQ organizes clipboard history into tabs, enabling users to group related items. Each tab can have its own set of rules and filters.
This provides a structured way to manage different types of clipboard content.

HISTORY

CopyQ was initially developed by Lukáš Holeček as a lightweight and cross-platform clipboard manager. The initial focus was on providing a simple way to store and retrieve clipboard history. Over time, it has evolved into a feature-rich application with advanced capabilities like scripting, multiple clipboards, and command-line interface. CopyQ is actively maintained and widely used by developers and power users who need a flexible and customizable clipboard management solution.

SEE ALSO

xclip(1), xsel(1)

Copied to clipboard