HaloLock

v1.3.196

| ~2 MB | macOS 12+

功能

●

一键保持唤醒

圆形按钮常驻桌面,开启后阻止显示器休眠与自动锁屏;可无限期或按倒计时保持。

◷

定时锁屏与关机

支持倒计时和定点两种模式,可定时锁屏、定时关机、注销、重启或立即关机。

!

预警与取消

锁屏前 10 秒、关机前 1 分钟弹窗预警并播放提示音,随时可以取消或立即执行。

⌘

菜单栏常驻

菜单栏状态点随保持唤醒状态切换红/绿,左键切换、右键打开完整功能菜单。

◐

主题与透明度

跟随系统 / 浅色 / 深色主题;鼠标离开 1.5 秒后按 5%~95% 档位平滑淡出。

↗

桌面增强

窗口置顶、鼠标穿透、模拟鼠标活动、阻止系统睡眠、开机自启动,均可从菜单开关。

🍜

吃什么

从本地 900+ 道菜中随机挑选 40 道组成词云,支持公司饭堂与八大菜系筛选,点菜名即可复制。

◎

无障碍与轻量

所有自绘窗口支持 VoiceOver;单个 .app,不依赖 Electron、WebView 或第三方运行时。

下载

HaloLock for macOS
v1.3.196
macOS 12 Monterey 及以上 · Apple Silicon / Intel · 约 1 MB
SHA256

下载后拖入「应用程序」即可使用。首次使用锁屏与电源操作时,系统会请求辅助功能 / 自动化权限。

v1.3.196
2026-11-25

新增

  • 完整移植 Windows 分支的 UI:圆形浮窗、菜单栏状态项、自绘右键菜单、时间选择、预警、帮助、确认框与「吃什么」词云
  • 闲置透明度 11 档与 1.5 秒淡出;鼠标穿透、模拟鼠标活动、阻止系统睡眠
  • 主题:跟随系统 / 浅色 / 深色;菜单栏图标随保持唤醒状态切换红/绿
  • 所有自绘窗口支持 NSAccessibility,VoiceOver 可朗读并操作
  • 预警提示音、系统通知、开机自启动与更新检查

测试与质量

  • 13 组单元测试;新增真实 .app 端到端测试(tests/e2e.sh)
  • E2E 覆盖窗口、菜单/子菜单、时间选择、预警、确认框、帮助、词云、无障碍树、主题/语言与剪贴板
  • 单实例、日志轮转与 app bundle 版本号校验

兼容性

  • macOS 12 Monterey 及以上;Apple Silicon 与 Intel
  • 锁屏回退与电源操作首次使用需授予辅助功能 / 自动化权限

Added

  • Full port of the Windows UI: circular floating button, menu-bar status item, custom context menu, time picker, warnings, help, confirmations and the food word cloud
  • Eleven idle-transparency levels with a 1.5 s fade; click-through, simulated mouse activity and system-sleep prevention
  • Theme: follow system / light / dark; the menu-bar icon switches red/green with keep-awake state
  • NSAccessibility on every custom-drawn window; VoiceOver can read and operate controls
  • Warning beeps, system notifications, launch at login and update checks

Testing

  • Thirteen unit suites; a real-.app end-to-end test (tests/e2e.sh)
  • E2E covers windows, menus/submenus, time picker, warnings, confirmations, help, food cloud, accessibility tree, theme/language and the clipboard
  • Single instance, log rotation and app-bundle version checks

Compatibility

  • macOS 12 Monterey or later on Apple Silicon and Intel
  • Accessibility/Automation permission is requested on first use of lock-screen and power actions
v1.2.0
2026-11-19

已完成

  • 保持唤醒:IOPMAssertion 阻止显示器休眠,支持无限期或倒计时保持
  • 锁屏三级回退:CGSession → 模拟 Control-Cmd-Q → 关闭显示器
  • 定时锁屏与定时关机,关机前 1 分钟弹出预警并实时倒数
  • 关机、重启、注销经 System Events 执行,均有二次确认
  • 开机自启动(LaunchAgent)、单实例(flock)、更新检查(NSURLSession)
  • CoreGraphics/CoreText 自绘:圆角、渐变、裁剪、文本;无边框透明窗口、圆外点击穿透、Retina
  • 中英文即时切换;核心逻辑与 9 组单元测试;CMake 拆分与 macOS CI

进行中

  • 菜单、时间选择、帮助、锁屏/关机预警窗口与 AppKit 应用入口
  • 自绘控件的 NSAccessibility 支持(VoiceOver)
  • 截图回归、交互测试、签名公证与 DMG 发布验证

交互与视觉约定

  • 主按钮 26 DIP、阴影留白 6 DIP、菜单行高 34 DIP、根菜单宽度 176 DIP
  • 点击不出现焦点框;可点击元素悬停显示手型与可见反馈
  • 主窗口右键贴圆弹出,菜单栏右键跟随鼠标并在靠近屏幕边缘时翻转

兼容性

  • macOS 12 Monterey 及以上;Apple Silicon 与 Intel,可打通用二进制
  • 未启用 App Sandbox,不通过 Mac App Store 分发
  • 首次使用锁屏与电源功能需授予辅助功能 / 自动化权限

Done

  • Keep awake with IOPMAssertion; indefinite or countdown-based
  • Lock screen falls back from CGSession to a simulated Control-Cmd-Q to display sleep
  • Scheduled lock and shutdown, with a 1-minute warning popup and live countdown
  • Shutdown, restart and log out run through System Events with confirmations
  • Launch at login (LaunchAgent), single instance (flock), update check (NSURLSession)
  • CoreGraphics/CoreText drawing: rounded corners, gradients, clipping, text; borderless transparent windows, click-through outside the circle, Retina
  • Instant Chinese/English switching; nine unit suites; CMake targets and macOS CI

In progress

  • Menu, time picker, help and lock/shutdown warning windows; AppKit app entry
  • NSAccessibility for custom-drawn controls (VoiceOver)
  • Screenshot regression, interaction tests, signing/notarization and DMG validation

Interaction & visuals

  • 26 DIP button, 6 DIP shadow margin, 34 DIP menu row, 176 DIP root menu width
  • No focus ring on click; pointer cursor and visible hover feedback on every clickable element
  • Window right-click opens beside the circle; menu-bar right-click follows the cursor and flips near screen edges

Compatibility

  • macOS 12 Monterey or later on Apple Silicon and Intel, including universal binaries
  • No App Sandbox; not distributed through the Mac App Store
  • Accessibility / Automation permission is required for lock and power actions on first use