Skip to content

zoe668668/cli-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‹ cli-battery

GitHub release License: MIT GitHub stars Go Report Card

A beautiful battery health monitor for your terminal πŸ”‹βœ¨

A lightweight, zero-dependency CLI tool to monitor your laptop battery health, cycle count, temperature, and estimated lifespan with beautiful terminal graphics.

Demo

✨ Features

  • πŸ“Š Battery Health Score - Visual health percentage with color coding (green/yellow/red)
  • πŸ”„ Cycle Count - Track charge cycles vs. design limit
  • 🌑️ Temperature Monitor - Real-time battery temperature
  • ⏱️ Time Estimates - Time to full charge / time remaining
  • πŸ“ˆ Pretty Charts - ASCII progress bars
  • πŸ–₯️ Cross-Platform - macOS & Linux support
  • ⚑ Zero Dependencies - Single binary, no runtime required
  • 🎨 Color Themes - Multiple color schemes (default, neon, dark, minimal)

πŸ“¦ Installation

macOS

curl -sSL https://github.com/zoe668668/cli-battery/releases/latest/download/cli-battery-darwin-arm64 -o cli-battery
chmod +x cli-battery
./cli-battery

Linux

curl -sSL https://github.com/zoe668668/cli-battery/releases/latest/download/cli-battery-linux-amd64 -o cli-battery
chmod +x cli-battery
./cli-battery

πŸš€ Quick Start

# Basic usage - show battery status
cli-battery

# Watch mode - update every 5 seconds
cli-battery --watch

# JSON output for scripting
cli-battery --json

# Show with neon theme
cli-battery --theme neon

πŸ› οΈ Building from Source

git clone https://github.com/zoe668668/cli-battery.git
cd cli-battery
go build -o cli-battery .
./cli-battery

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“ License

MIT License - see the LICENSE file for details.


⭐ If this project helped you, please consider giving it a star! ⭐

About

πŸ”‹ A beautiful battery health monitor for your terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors