| Crates.io | juice-cli |
| lib.rs | juice-cli |
| version | 0.2.0 |
| created_at | 2025-12-13 07:33:03.0137+00 |
| updated_at | 2025-12-14 03:19:56.307497+00 |
| description | Modern battery status for Linux |
| homepage | |
| repository | https://github.com/yawarakatai/juice |
| max_upload_size | |
| id | 1982699 |
| size | 46,175 |
juice # Simple output
juice -v # Detailed output
# Daemon (background data collection)
juice daemon # Start with 30s interval
juice daemon -i 60 # Custom interval
# Status
juice status # Show database info
# Export
juice export # CSV to stdout
juice export -o data.csv # Save to file
juice export --from 2025-12-13 --to 2025-12-14
BAT0 ████████░░ 84% 11.2W ↓ 2h34m
BAT0 ████████░░ 84% 8.2W ↓ 3h12m
BAT1 ██████░░░░ 62% 3.0W ↓ 2h58m
-v)BAT0 ████████░░ 84% Discharging
Power: 11.2W
Remaining: 2h34m
Energy: 45.2 / 54.0 Wh
Cycle count: 142
Health: 92.3%
Technology: Li-ion
cargo install juice-cli
git clone https://github.com/yawarakatai/juice
cd juice
cargo build --release
nix run github:yawarakatai/juice
Or add to your flake inputs:
{
inputs.juice.url = "github:yawarakatai/juice";
}
juice reads battery information from /sys/class/power_supply/ and supports:
energy_* interfaces (most laptops)charge_* interfaces (some older hardware)current_now + voltage_now fallback for power calculationTested on:
MIT