mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 21:22:09 +02:00

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
25 lines
448 B
Markdown
25 lines
448 B
Markdown
# wl-copy
|
|
|
|
> Clear and copy to Wayland clipboard.
|
|
> See also: `wl-paste`, `xclip`.
|
|
> More information: <https://github.com/bugaevc/wl-clipboard>.
|
|
|
|
- Copy the text to the clipboard:
|
|
|
|
`wl-copy "{{text}}"`
|
|
|
|
- Pipe the command (`ls`) output to the clipboard:
|
|
|
|
`{{ls}} | wl-copy`
|
|
|
|
- Copy for only one paste and then clear it:
|
|
|
|
`wl-copy --paste-once "{{text}}"`
|
|
|
|
- Copy an image:
|
|
|
|
`wl-copy < {{path/to/image}}`
|
|
|
|
- Clear the clipboard:
|
|
|
|
`wl-copy --clear`
|