tldr/pages/linux/wl-copy.md

26 lines
439 B
Markdown
Raw Normal View History

2021-10-18 05:36:11 +01:00
# wl-copy
> Wayland clipboard manipulation tool.
> See also: `wl-paste`.
> More information: <https://github.com/bugaevc/wl-clipboard>.
2021-10-18 05:36:11 +01:00
2022-03-19 20:16:52 +00:00
- Copy the text to the clipboard:
2021-10-18 05:36:11 +01:00
2022-03-19 20:16:52 +00:00
`wl-copy "{{text}}"`
2021-10-18 05:36:11 +01:00
2022-03-19 20:16:52 +00:00
- Pipe the command (`ls`) output to the clipboard:
2021-10-18 05:36:11 +01:00
2022-03-19 20:16:52 +00:00
`{{ls}} | wl-copy`
2021-10-18 05:36:11 +01:00
- Copy for only one paste and then clear it:
2022-03-19 20:16:52 +00:00
`wl-copy --paste-once "{{text}}"`
- Copy an image:
`wl-copy < {{path/to/image}}`
2021-10-18 05:36:11 +01:00
- Clear the clipboard:
`wl-copy --clear`