Repository navigation
- Just a working PoC app
MacBatteryMonitor
A tiny, dependency-free macOS menu bar app that shows live battery charging
info — the same data as System Report's Power tab, refreshed on an interval you
choose. Written in a single Swift file using AppKit; no pip, no pyobjc, no
third-party packages.
🔌 25W 72% ← menu bar
├ State of Charge: 72%
├ Into battery: +25.5 W (in)
├ Charge rate: +18 %/h
├ Time to full: 0:48
├ Adapter: 94 W (20 V · 4.7 A)
├ Battery cells: 11.60 V · +2.20 A
├ Health: 91% · 142 cycles
├ Temperature: 31.2 °C
├ Status: charging
├ Display Style ▸ (16 styles)
└ Refresh Rate ▸ (1s … 1 min)
Features
- Live charge %, charging power into the battery (V × I), charge rate
(%/h), time to full/empty, battery health & cycle count, temperature,
and battery cell V/A. - Separate adapter readout (negotiated volts/amps/watts) so the charger's
rating and the battery's actual intake are never confused. - 16 menu-bar display styles (watts, adapter watts, adapter ▸ battery flow,
system-draw estimate, adapter V·A, time, finish clock time, charge rate, V·A,
temperature, health, gauge bar, compact, adaptive, and more) — switchable from
the menu, remembered across launches. - Adjustable refresh rate (1s, 2s, 5s, 10s, 30s, 1 min).
- Menu-bar only (no Dock icon). No special permissions or
sudo.
Requirements
- macOS 10.15+