Crates.io | x11-clipboard-rs |
lib.rs | x11-clipboard-rs |
version | 0.1.1 |
source | src |
created_at | 2024-03-22 07:51:28.491507 |
updated_at | 2024-04-20 12:47:44.222786 |
description | X11 cliboard copy and paste command line tool |
homepage | https://crates.io/crates/x11-clipboard-rs |
repository | https://github.com/MITSUBOSHI/x11-clipboard-rs |
max_upload_size | |
id | 1182362 |
size | 19,916 |
cb (x11-clipboard-rs) is a command line tool such as pbcopy
and pbpaste
in MacOS.
X11 cliboard copy and paste command line tool
Usage: cb <COMMAND>
Commands:
copy Copy data from STDIN or command argument to X11 clipboard
paste Paste data from X11 clipboard to STDOUT
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Copy data from STDIN or command argument to X11 clipboard.
# from STDIN
echo "Hello, new user to cb" | cb copy
# from command argument
cb copy "Hello, new user to cb"
Paste data from X11 clipboard to STDOUT.
cb paste > /tmp/dump.txt
This tool is available as open source under the terms of the MIT License.