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