Crates.io | cellrs |
lib.rs | cellrs |
version | 0.2.3 |
source | src |
created_at | 2020-05-08 00:23:45.935419 |
updated_at | 2020-06-23 23:07:53.099636 |
description | A terminal-based battery indicator written in Rust. |
homepage | |
repository | https://github.com/leglesslamb/cellrs |
max_upload_size | |
id | 238753 |
size | 128,187 |
cellrs
(pronounced "cellars") is a terminal-based battery indicator written in Rust.
cellrs
displays a battery which resizes with the size of the terminal.Supported platforms/versions are generally based on battery.
There are a few ways you can get and use cellrs
.
Install from crates.io. Requires cargo
.
cargo install cellrs
Download a release binary from GitLab and put it somewhere in your $PATH
.
Build from source. Requires cargo
.
git clone https://gitlab.com/leglesslamb/cellrs.git
cd cellrs
make install
usage : cellrs
Command-Line Arguments
-b [width] Set custom blink-width [16-bit unsigned] (defaults to 1).
-h Display this help message.
-[1-4] Select battery index. The right-most option will override.
Index-out-of-bounds will default index to 0.
Key Commands
b Cycle through the blink-width value.
If your custom blink-width was 1 or unset, it will cycle
through {1, <max-width>, 0, ...}. Otherwise, it will
cycle through {<custom-width>, <max-width>, 0, ...}.
q Quit cellrs.
[1-4] Switch between up to the first four indexed batteries.
Index-out-of-bounds will default index to 0.