Skip to content

About

macOS TUI for laptop battery power — charge, draw, and a 60s history plot

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

Δ Watts

A quiet TUI for Mac laptop power: charge, remaining time, live system draw, and the last 60 seconds of history.

Δ Watts

macOS only. Quit with q.

Install

./install.sh

That builds the power sampler and adds a dwatts alias to your shell profile. Restart the shell (or source the profile), then:

dwatts

Needs Ruby 3.0+ and Xcode Command Line Tools (cc). Uninstall with ./install.sh --uninstall.

You can also run it without the alias:

ruby bin/delta_watts

What it shows

  • AC vs battery, charging / unplugged
  • Charge bar and percent
  • Time remaining, or time to full
  • Live system draw (watts)
  • 60-second draw plot, auto-scaled

Live watts come from IOReport energy counters and the SMC PSTR key — the same class of data as powermetrics, without sudo. Charge and runtime still come from the battery pack via ioreg.

About

macOS TUI for laptop battery power — charge, draw, and a 60s history plot

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages