- 实时 CPU/GPU/内存/Swap 监控 + Top 进程 - 5 种计量器样式(圆环/条状/纯文本/扇形/紧凑) - 半透明悬浮窗 + 菜单栏图标控制 - 独立设置窗口,每模块可指定行号+列位布局 - 窗口宽高/透明度/字体全局可调
10 lines
240 B
Swift
10 lines
240 B
Swift
import AppKit
|
|
|
|
// ── FloatingMonitor 入口 ──
|
|
|
|
let app = NSApplication.shared
|
|
let delegate = AppDelegate()
|
|
app.delegate = delegate
|
|
app.setActivationPolicy(.accessory)
|
|
_ = NSApplicationMain(CommandLine.argc, CommandLine.unsafeArgv)
|