2021-10-18 05:36:11 +01:00
|
|
|
# wl-copy
|
|
|
|
|
|
|
|
> Wayland clipboard manipulation tool.
|
2021-11-14 19:21:15 +00:00
|
|
|
> 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
|
|
|
|
2022-03-17 05:08:52 +00:00
|
|
|
- Copy for only one paste and then clear it:
|
|
|
|
|
2022-03-19 20:16:52 +00:00
|
|
|
`wl-copy --paste-once "{{text}}"`
|
2022-03-17 05:08:52 +00:00
|
|
|
|
2023-11-06 20:42:09 +00:00
|
|
|
- Copy an image:
|
|
|
|
|
|
|
|
`wl-copy < {{path/to/image}}`
|
|
|
|
|
2021-10-18 05:36:11 +01:00
|
|
|
- Clear the clipboard:
|
|
|
|
|
|
|
|
`wl-copy --clear`
|