CUTSEL(1)

NAME
cutsel - command-line access to X selections and the cutbuffer

SYNOPSIS
cutsel [-selection name] [-cutbuffer number] [-debug] [-verbose] cut [value]
cutsel [-selection name] [-cutbuffer number] [-debug] [-verbose] sel [value]
cutsel [-selection name] [-debug] [-verbose] targets
cutsel [-selection name] [-debug] [-verbose] length

DESCRIPTION
cutsel provides command-line access to X selections and cutbuffers. It can read or write the cutbuffer, get or set the selection value, list the targets advertised by the current selection owner, and query the selection length.

SUBCOMMANDS

cut [value]
    Without value, print the current content of the cutbuffer and exit. With value, store it in the cutbuffer.

sel [value]
    Without value, print the current content of the selection and exit. With value, own the selection with the given value. The process stays running until the selection is claimed by another client.

targets
    List the TARGETS advertised by the current selection owner. This shows which formats the owner can convert the selection to.

length
    Query the LENGTH of the current selection value (as advertised by the selection owner).

OPTIONS

-selection, -select, -sel, -s name
    Specify which selection to use. Default is CLIPBOARD.

-cutbuffer, -cut, -c number
    Specify which cutbuffer to use. Default is 0.

-debug, -d
    Print debugging information.

-verbose, -v
    Be more verbose.

--help
    Print usage information and exit. Does not require an X display.

--version
    Print version information and exit. Does not require an X display.

EXAMPLES
Print the current clipboard content:

    cutsel sel

Set the clipboard to a specific value:

    cutsel sel "Hello, world"

Print the current cutbuffer content:

    cutsel cut

List the targets offered by the current clipboard owner:

    cutsel targets

Read the PRIMARY selection instead of CLIPBOARD:

    cutsel -selection PRIMARY sel

SEE ALSO
autocutsel(1)

AUTHORS
Originally written by Michael Witrant <mike@lepton.fr>.
Original repository: https://github.com/sigmike/autocutsel

Fork: https://github.com/Pihaar/autocutsel

LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.