mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 18:51:44 +00:00
Update cheatsheets
This commit is contained in:
30
linux/wl-copy
Normal file
30
linux/wl-copy
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# wl-copy
|
||||
|
||||
> Clear and copy to Wayland clipboard.
|
||||
> See also: `wl-paste`, `xclip`.
|
||||
> 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}}"`
|
||||
|
||||
- Copy an image:
|
||||
|
||||
`wl-copy < {{path/to/image}}`
|
||||
|
||||
- Clear the clipboard:
|
||||
|
||||
`wl-copy --clear`
|
||||
Reference in New Issue
Block a user