PowerGrid is a macOS power management project built around a privileged daemon, a menu bar app, and a daemon-backed CLI.
Use PowerGrid when you need:
- a persistent charge limit enforced by a root daemon
- force discharge and sleep-assertion controls
- Low Power Mode and optional MagSafe LED control
- a native menu bar app for live battery and adapter status
- a local CLI that talks to the daemon instead of bypassing it
powergrid-daemon: root daemon that enforces power policyPowerGrid.app: SwiftUI menu bar apppowergridctl: local CLI client for the daemon
make buildmake verifyCommon local targets:
make xcodegenmake protomake swift-testmake build
make proto will build and cache the pinned gRPC Swift generator automatically on first use.
Keep the README short. Detailed material lives elsewhere:
- daemon socket:
/var/run/powergrid.sock - per-user preferences:
~/Library/Preferences/com.neutronstar.powergrid.plist - system daemon preferences:
/Library/Preferences/com.neutronstar.powergrid.daemon.plist
PowerGrid changes hardware power behavior through a privileged daemon. Treat mutations as system-level operations and prefer daemon-mediated control paths over direct tooling.
