x11-clipboard-rs

Crates.iox11-clipboard-rs
lib.rsx11-clipboard-rs
version0.1.1
sourcesrc
created_at2024-03-22 07:51:28.491507
updated_at2024-04-20 12:47:44.222786
descriptionX11 cliboard copy and paste command line tool
homepagehttps://crates.io/crates/x11-clipboard-rs
repositoryhttps://github.com/MITSUBOSHI/x11-clipboard-rs
max_upload_size
id1182362
size19,916
mitsubosh (MITSUBOSHI)

documentation

https://docs.rs/x11-clipboard-rs/

README

cb (x11-clipboard-rs)

test

cb (x11-clipboard-rs) is a command line tool such as pbcopy and pbpaste in MacOS.

Usage

Dependency to use

cb help

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

cb copy

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"

cb paste

Paste data from X11 clipboard to STDOUT.

cb paste > /tmp/dump.txt

License

This tool is available as open source under the terms of the MIT License.

Commit count: 17

cargo fmt