Linux command
wl-paste 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Paste
wl-paste
Example
wl-paste --primary
Write
wl-paste > [path/to/file]
Example
wl-paste --no-newline
Example
wl-paste --list-types
Example
wl-paste --type image/png > [path/to/image.png]
Pipe
wl-paste | [command]
Example
wl-paste --watch [command]
说明
wl-paste retrieves data from the Wayland clipboard and writes it to stdout. It can request specific MIME types for clipboard data, supporting both text and binary content like images. The primary selection (text selected with mouse) can be accessed with --primary, enabling middle-click paste functionality. The watch mode allows monitoring clipboard changes.
参数
- -p, --primary
- Use the primary selection instead of clipboard
- -n, --no-newline
- Do not append newline character
- -t, --type _mime-type_
- Request specific MIME type
- -l, --list-types
- List available MIME types
- -s, --seat _seat_
- Pick the seat to work with
- -w, --watch _command_ _args_...
- Run command each time clipboard changes
- -v, --version
- Display version information
- -h, --help
- Display help message
FAQ
What is the wl-paste command used for?
wl-paste retrieves data from the Wayland clipboard and writes it to stdout. It can request specific MIME types for clipboard data, supporting both text and binary content like images. The primary selection (text selected with mouse) can be accessed with --primary, enabling middle-click paste functionality. The watch mode allows monitoring clipboard changes.
How do I run a basic wl-paste example?
Run `wl-paste` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --primary do in wl-paste?
Use the primary selection instead of clipboard