Skip to content

About

macOS menu bar app showing real-time system power draw on Apple Silicon

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

PendingPower 应用图标

PendingPower

macOS menu bar app showing real-time system power
Mac 菜单栏显示实时功率的工具

License Swift Platform Release

PendingPower 菜单栏截图

下载 / Download

Releases

M 芯片 Mac,并且系统版本在 macOS 13 或以上 就能用

Requires an Apple Silicon Mac running macOS 13 or later.

原理 / How

数据来源于 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

Repository layout

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

许可 / License

MIT

About

macOS menu bar app showing real-time system power draw on Apple Silicon

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages