Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaa110/cb
Command line interface to manage clipboard
https://github.com/yaa110/cb
cli clipboard linux rust
Last synced: 12 days ago
JSON representation
Command line interface to manage clipboard
- Host: GitHub
- URL: https://github.com/yaa110/cb
- Owner: yaa110
- License: apache-2.0
- Archived: true
- Created: 2019-05-05T12:08:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T16:10:35.000Z (over 1 year ago)
- Last Synced: 2024-08-01T03:23:03.722Z (3 months ago)
- Topics: cli, clipboard, linux, rust
- Language: Rust
- Size: 103 KB
- Stars: 83
- Watchers: 4
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust - yaa110/cb - ci.org/yaa110/cb.svg?branch=master)](https://travis-ci.org/yaa110/cb) (Applications / Utilities)
- awesome-rust-cn - yaa110/cb - (应用程序 Applications / 公用事业公司 Utilities)
- awesome-rust-zh - yaa110/cb - 用于管理剪贴板的命令行界面[![Build Status](https://api.travis-ci.org/yaa110/cb.svg?branch=master)](https://travis-ci.org/yaa110/cb) (应用 / 实用)
- awesome-rust - yaa110/cb - ci.org/yaa110/cb.svg?branch=master)](https://travis-ci.org/yaa110/cb) (应用 Applications / 公用事业 Utilities)
- jimsghstars - yaa110/cb - Command line interface to manage clipboard (Rust)
- awesome-rust-cn - yaa110/cb - ci.org/yaa110/cb.svg?branch=master)](https://travis-ci.org/yaa110/cb) (应用 / Utilities)
README
# cb
[![Build Status](https://travis-ci.org/yaa110/cb.svg?branch=master)](https://travis-ci.org/yaa110/cb) [![Download](https://img.shields.io/badge/download-0.1.0-blue.svg)](https://github.com/yaa110/cb/releases/download/0.1.0/cb)
Command line interface to manage clipboard
## How to install
### Pre-Compiled
you can download a [pre-compiled executable](https://github.com/yaa110/cb/releases), then you should copy that executable to `/usr/bin` or add it to your `$PATH` env. Do not forget to `chmod +x cb`.
#### Distribution packages
Users of **Arch Linux** can install package from AUR:
* Precompiled release: [cb-bin](https://aur.archlinux.org/packages/cb-bin/) (*Only x64 is supported*)
* Build latest release: [cb](https://aur.archlinux.org/packages/cb/)
* Build from master: [cb-git](https://aur.archlinux.org/packages/cb-git/)### Build Manually
- Install rust: `curl -sSf https://sh.rustup.rs | sh`
- Install packages: `xorg-dev` and `build-essential`
- Run `make && sudo make install`## How to use
- Copy text: `cb -t "Text to be copied"`
- Paste copied text: `cb -p`
- Copy from stdin: `cat file | cb`## Usage
```sh
Usage: cb [OPTIONS]Optional arguments:
-h, --help Prints the help message
-V, --version Prints the version
-p, --paste Pastes the content of clipboard
-c, --clear Clears the content of clipboard
-s, --server Starts server as a daemon
-r, --raw Do not print newline after pasting the content
-t, --text TEXT Store TEXT into clipboard
```