3 releases

0.1.2 Aug 8, 2021
0.1.1 Aug 8, 2021
0.1.0 Aug 7, 2021

#32 in #clear

Custom license

19KB
54 lines

main Latest version

cb

Clipboard manager for Linux and macOS.

cb is a utility that allows you to get and set values on the system clipboard.

Examples

Using cb is quite simple. Getting the current clipboard value is done via the following:

cb get

When setting a value on the system clipboard, simply pipe the value to cb:

echo foo | cb set

Finally, to clear a value from the clipboard, do the following:

cb clear

Installation

Install Rust and then do:

cargo install cb

Compilation

For Debian-based Linux distributions, install the system dependencies:

sudo apt install xorg-dev libxcb-present-dev

Then, compile the binary:

cargo build

Dependencies

~2MB
~27K SLoC