个人 macOS 菜单栏工具箱 / Personal macOS menu bar toolkit
一个 app 装一堆个人需要的小功能。当前包含:远程连接自动熄屏、鼠标/触控板独立滚动方向控制。
A single app for a grab-bag of small personal utilities. Currently: remote-connection auto screen-off, and Mos-style independent scroll-direction control for mouse vs trackpad.
- 当有人通过 RustDesk 或 macOS 屏幕共享(VNC)远程连接到你的 Mac 时,本地屏幕自动变黑,防止旁人看到远程操作内容
- 多显示器自动镜像:连接时自动将多个屏幕合并为一个,远程端只看到一个屏幕
- 连接前保存多显示器镜像状态,断开后按快照恢复;菜单提供手动恢复扩展显示器
- 自动切换分辨率:连接时切换到 1512×982 HiDPI,断开后恢复
- Dock 自动移到左侧并关闭自动隐藏,断开后恢复原始位置
- 远程连接断开后,屏幕自动恢复并锁屏
- 远程端画面不受影响,正常显示桌面
- 菜单栏显示当前状态(监控中 / 已熄屏)
- 支持 FileVault AuthRestart(免密重启)
- 鼠标和触控板独立反转滚动方向,互不影响
- 默认:鼠标反转(传统方向)、触控板保持系统设置(自然方向)
- 菜单栏可即时切换两个开关,状态自动持久化
- 需要授予「辅助功能」和「输入监控」权限
./build_app.sh
open Bento.app- 启动后菜单栏出现眼睛图标
- 首次启动会请求权限(用于滚动方向控制)。在「系统设置 → 隐私与安全性」里确认 Bento 已允许「辅助功能」和「输入监控」,然后退出 app 重开
- 开机自启已自动配置,无需操作
- 点击菜单栏图标可看状态、切换滚动反转开关、退出
- macOS 14.0 (Sonoma) 或更高版本
- 远程熄屏功能需要 RustDesk 或开启 macOS 屏幕共享
- Automatically blacks out the local screen when someone connects to your Mac via RustDesk or macOS Screen Sharing (VNC)
- Auto display mirroring: merges multiple monitors into one when connected
- Saves the pre-connection display mirroring state and restores it on disconnect; includes a manual restore action for extended displays
- Auto resolution switching: switches to 1512×982 HiDPI on connect, restores on disconnect
- Dock repositioning: moves Dock to the left and disables auto-hide on connect, restores on disconnect
- Restores the screen, multi-monitor layout, resolution, and Dock when the remote connection ends, then locks the screen
- The remote viewer's display is unaffected
- Menu bar icon shows current status (monitoring / screen off)
- FileVault AuthRestart support (password-free reboot)
- Mouse and trackpad scroll directions can be reversed independently
- Defaults: mouse reversed (traditional direction), trackpad untouched (natural direction)
- Toggle either from the menu bar — changes apply instantly and persist
- Requires Accessibility and Input Monitoring permissions
./build_app.sh
open Bento.app- An eye icon appears in the menu bar
- On first launch you'll be prompted for permissions used by the scroll reverser. Confirm Bento is allowed under System Settings → Privacy & Security → Accessibility and Input Monitoring, then quit and relaunch the app
- Launch-at-login is configured automatically
- Click the menu bar icon to see status, toggle scroll reversal, or quit
- macOS 14.0 (Sonoma) or later
- Remote screen-off feature requires RustDesk or macOS Screen Sharing