macOS menu bar app showing real-time system power
Mac 菜单栏显示实时功率的工具
M 芯片 Mac,并且系统版本在 macOS 13 或以上 就能用
Requires an Apple Silicon Mac running macOS 13 or later.
数据来源于 AppleSMC PSTR 系统功率。
It reads AppleSMC PSTR system rail power.
Sources/PendingPower/
├── SMCPowerReader.swift 读取 AppleSMC PSTR 整机功率
├── PowerMonitor.swift 定时采样 PSTR
├── StatusBarController.swift 菜单栏项和它的菜单
└── main.swift NSApplicationDelegate,把上面两块接起来
Resources/ Info.plist、entitlements、AppIcon.icns
scripts/ build.sh · build-dmg.sh · make-icon.swift · smoke.swift
Sources/PendingPower/
├── SMCPowerReader.swift reads AppleSMC PSTR system rail power
├── PowerMonitor.swift samples PSTR on a timer
├── StatusBarController.swift the menu bar item and its menu
└── main.swift NSApplicationDelegate, wires the two together
Resources/ Info.plist, entitlements, AppIcon.icns
scripts/ build.sh · build-dmg.sh · make-icon.swift · smoke.swift
MIT
