Battery Monitor is a Python script that displays battery information on your system in a user-friendly format. It shows the battery percentage, charging status, time left, and battery health, with colored output to improve readability. The script works across multiple platforms including Windows, macOS, and Linux.
- Cross-platform support (Windows, macOS, Linux)
- Displays battery percentage, charging status, and time left
- Provides battery health status with color-coded outputs
- Clear and visually appealing terminal output similar to
screenfetch
==============================
Battery Monitor
==============================
System: Windows 11
Machine: AMD64
Processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
==============================
Battery Percentage: 100%
Plugged In: Yes
Charging: Yes
Time Left: Charging
Battery Health: Healthy
==============================
Powered by Battery Monitor (github.com/basemax)
-
Clone the repository:
git clone https://github.com/BaseMax/battery-monitor.git cd battery-monitor
-
Install the required Python dependencies:
pip install -r requirements.txt
- Python 3.x
psutil
library for fetching battery statustermcolor
library for colored output
You can install the required libraries by running:
pip install psutil termcolor
To run the script, simply execute:
python battery-monitor.py
This will display your battery information in a clean, user-friendly format.
battery-monitor/
├── LICENSE
├── README.md
├── battery-monitor.py
├── requirements.txt
└── .git/
MIT License.
Copyright 2025, Max Base