1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/wl-copy.md
2022-03-19 17:16:52 -03:00

21 lines
390 B
Markdown

# wl-copy
> Wayland clipboard manipulation tool.
> See also: `wl-paste`.
> 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}}"`
- Clear the clipboard:
`wl-copy --clear`