Repository navigation
LayoutKeeper 0.5.0
⚠️ 此版本安装包已下线,请下载最新版本 / Assets removed; please download the latest release: https://github.com/tumingke0/LayoutKeeper/releases/latest
LayoutKeeper 0.5.0
LayoutKeeper 是一个 macOS 菜单栏小工具:为每块外接显示器保存窗口布局(位置、大小、所在桌面),重新接上屏幕时一键或自动恢复。只在本机工作,不联网,不读取窗口内容。
下载哪个文件?
先确认你的 Mac 用的是哪种芯片:点屏幕左上角 苹果菜单 → 关于本机,看“芯片”(或“处理器”)一行。
| 你的 Mac | 下载 |
|---|---|
| 芯片显示 Apple M1 / M2 / M3 / M4 / M5…(Apple 芯片) | LayoutKeeper-0.5.0-AppleSilicon.dmg |
| 处理器显示 Intel Core … | LayoutKeeper-0.5.0-Intel.dmg |
Intel 版说明: Intel 版本为交叉编译构建,已核对为 x86_64 架构、最低 macOS 14,但尚未在真实 Intel Mac 上测试。遇到问题欢迎提 issue。
安装
打开下载的 .dmg,把 LayoutKeeper 拖到“应用程序”(Applications)文件夹。
首次打开(未经 Apple 公证)
本版本为 ad-hoc 签名,未经 Apple 公证(not notarized),首次打开时 Gatekeeper 会拦截。任选一种方式:
- 在“应用程序”中右键(或按住 Control 点按)LayoutKeeper → 打开,在弹窗中再点“打开”。
- 或先双击一次,然后前往 系统设置 → 隐私与安全性,在页面下方点 “仍要打开”。
- 或在终端运行:
xattr -dr com.apple.quarantine /Applications/LayoutKeeper.app
授予“辅助功能”权限
LayoutKeeper 需要“辅助功能”权限来读取和移动窗口。首次启动的引导会带你打开 系统设置 → 隐私与安全性 → 辅助功能,打开 LayoutKeeper 的开关即可。
系统要求
- macOS 14 或更新。
- 跨桌面(Space)恢复需要 macOS 26 或更新,且系统存在所需的私有接口(启动时自动检测,缺失时自动关闭此功能)。
校验:shasum -a 256 LayoutKeeper-0.5.0-*.dmg
English
LayoutKeeper is a macOS menu-bar utility that saves window layouts (position, size, and desktop/Space) per external monitor and restores them when you reconnect — manually or automatically. Local only, no network, never reads window contents.
- Which file? Apple menu → About This Mac. "Chip: Apple M…" →
LayoutKeeper-0.5.0-AppleSilicon.dmg; "Processor: Intel…" →LayoutKeeper-0.5.0-Intel.dmg. The Intel build is verified as x86_64 / macOS 14+ but has not been tested on real Intel hardware. - Install: open the DMG and drag LayoutKeeper to Applications.
- First launch (not notarized): right-click the app → Open; or System Settings → Privacy & Security → "Open Anyway"; or run
xattr -dr com.apple.quarantine /Applications/LayoutKeeper.app. - Permission: grant Accessibility access (the onboarding opens the right Settings pane).
- Requirements: macOS 14+. Cross-Space restore requires macOS 26+ with the required private APIs (detected at launch).
- License: GPL-3.0-only.