#x11 #clipboard #paste #copy #command-line-tool

app x11-clipboard-rs

X11 cliboard copy and paste command line tool

2 releases

0.1.1 Apr 20, 2024
0.1.0 Mar 22, 2024

#441 in Command line utilities

Download history 119/week @ 2024-03-18 1/week @ 2024-03-25 20/week @ 2024-04-01 131/week @ 2024-04-15 14/week @ 2024-04-22

145 downloads per month

MIT license

8KB
133 lines

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.

Dependencies

~1.3–1.8MB
~36K SLoC