Usage:
/usr/bin/wl-paste [options]
Paste content from the Wayland clipboard.
Options:
-n, --no-newline Do not append a newline character.
-l, --list-types Instead of pasting, list the offered types.
-p, --primary Use the "primary" clipboard.
-w, --watch command Run a command each time the selection changes.
-t, --type mime/type Override the inferred MIME type for the content.
-s, --seat seat-name Pick the seat to work with.
-v, --version Display version info.
-h, --help Display this message.
Mandatory arguments to long options are mandatory for short options too.
See wl-clipboard(1) for more details.
Options (12)
| Option | Description | Source |
|---|
-n, --no-newline, --trim-newline (for | Do not copy the trailing newline character if it is present in the input file. | help + man |
-l, --list-types (for | Instead of pasting the selection, output the list of MIME types it is offered in. | help + man |
-p, --primary | Use the "primary" clipboard instead of the regular clipboard. | help + man |
-w, --watch command | Instead of pasting once and exiting, continuously watch the clipboard for changes, and run the specified command each time a new selection appears. | help + man |
-t, --type mime/type | Override the inferred MIME type for the content. | help + man |
-s, --seat seat-name | Specify which seat wl-copy and wl-paste should work with. | help + man |
-v, --version | Display the version of wl-clipboard and some short info about its license. | help + man |
-h, --help | Display a short help message listing the available options. | help + man |
-o, --paste-once (for | Only serve one paste request and then exit. (in the manual page but not in --help) | man |
-f, --foreground (for | By default, wl-copy forks and serves data requests in the background; (in the manual page but not in --help) | man |
-c, --clear (for | Instead of copying anything, clear the clipboard so that nothing is copied. (in the manual page but not in --help) | man |
--sensitive (for | Hint that the data being copied contains passwords, keys, or other sensitive content. (in the manual page but not in --help) | man |
Examples (7) from the manual page, untested
wl-copy Hello world!
Copy a simple text message:ls ~/Downloads | wl-copy
Copy the list of files in ~/Downloads:wl-copy < ~/Pictures/photo.png
Copy an image:wl-copy "!!"
Copy the previous command:wl-paste -n > clipboard.txt
Paste to a file, without appending a newline:wl-paste | sort | wl-copy
Sort clipboard contents:wl-paste --watch nc paste.example.org 5555
Upload clipboard contents to a pastebin on each change:
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.