2021-10-18 05:36:11 +01:00
|
|
|
# wl-copy
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Clear and copy to Wayland clipboard.
|
|
|
|
> See also: `wl-paste`, `xclip`.
|
2021-11-14 19:21:15 +00:00
|
|
|
> 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`
|