Fushi — Cleaning Lock for the Touch Screen MacBook Pro
Wipe your screen, keyboard and trackpad without pressing anything.
Built for the 2026 MacBook Pro with PROLED XDR Display and Touch display (M5 Pro / M5 Max) — the first MacBook Pro you can touch.
Also supports Macs without a touch screen, on macOS 14 Sonoma or later.
English · 繁體中文
Why
On a MacBook Pro with Touch display, wiping the PROLED XDR Display taps buttons, and wiping the keyboard deck types into whatever app is in front. Fushi temporarily locks exactly what you are cleaning, then unlocks automatically when time is up.
Four modes
| Mode |
What it locks |
How to finish |
| Screen Cleaning |
The screen goes black; taps on the touch screen press nothing; every key and shortcut (including ⌘Tab) is locked too |
Hold Esc for 3 s, or wait |
| Keyboard Cleaning |
Every key, including brightness, volume and media keys. “Also lock the trackpad” is on by default |
Hold the red button for 2 s with the touch screen or a mouse |
| Trackpad Cleaning |
The built-in trackpad + every key; external mice keep working |
Hold the red button with the touch screen or an external mouse |
| Full Lock |
Black screen + keyboard + trackpad + touch screen; only an external mouse works |
Move the mouse and hold the red button — or unplug the mouse to unlock instantly |
Designed so you can always get out
- Hold Esc for 3 seconds ends any mode, even with the keyboard locked. A 3‑2‑1 ring shows the progress.
- Auto-unlock after 30 s – 10 min (5 min by default), backed by independent timers that do not rely on the main thread.
- Unplug the external mouse in Full Lock and everything unlocks immediately.
- If Fushi crashes or is force-quit, the lock disappears with it. Fushi never changes system settings.
- Turning off the Accessibility permission during cleaning releases the lock within about 2 seconds.
While the screen is black, touching the keyboard or trackpad makes a gold glow breathe around the edges — the Mac is still on, and the hint tells you how to finish. Wiping the touch screen does not trigger it.
Install
- Download the latest
Fushi-…-macOS-Universal.zip from Releases and unzip it.
- Move Fushi.app to Applications and open it.
Fushi is not notarized by Apple (it is a free open-source app). If macOS blocks it, open System Settings › Privacy & Security and click Open Anyway.
- Allow Accessibility when Fushi asks (System Settings › Privacy & Security › Accessibility). Every mode needs it: while cleaning, the whole keyboard (every shortcut included) does nothing, and only holding Esc for 3 s unlocks.
Requirements: macOS 14 Sonoma or later. Universal app for Apple silicon and Intel; tested on Apple silicon.
Known limits: while a password field is active (macOS Secure Input), no app can lock the keyboard, so Fushi asks you to leave the field first. The power button and Touch ID are handled by the hardware and cannot be locked — avoid them while cleaning.
For AI agents and scripts (fushi-cli)
Fushi ships a small command-line tool inside the app, so an AI agent or a script can drive it without clicking through the UI:
/Applications/Fushi.app/Contents/Helpers/fushi-cli help
| Command |
What it does |
status |
Show what Fushi is doing (idle, countdown or cleaning; time left; permissions). Reads a status file, never blocks. |
start <mode> [--seconds N] |
Start screen, keyboard, keyboard-only, trackpad or all after the usual 3 s countdown. |
stop |
Cancel the countdown, or end cleaning and unlock. |
set-duration <seconds> |
Change the default auto-unlock time (30–600, a multiple of 10). |
selftest [--escape] |
While cleaning: confirm the locks are really active (with the keyboard locked, a harmless synthetic F19 must be blocked); --escape also confirms that holding Esc for 3 s ends cleaning. |
wait <phase> |
Wait until the phase is idle, countdown or cleaning. |
launch |
Open Fushi if it is not running (never starts cleaning). |
Add --dry-run to start, stop or set-duration to check a request without doing anything. Output is JSON; exit codes are 0 ok, 1 refused, 2 no answer, 3 Fushi not running, 64 usage error.
How it works and why it is safe
fushi-cli never touches the locks. It drops a small JSON request into ~/Library/Application Support/Fushi/inbox/; the app itself validates and runs it through the same code path as the buttons (3 s countdown, permission checks, Secure Input checks, auto-unlock), then writes the answer to results/ and its state to status.json.
- A request cannot weaken any safeguard. There is no command that disables the Esc exit, skips the countdown, or goes past the 10-minute limit; anything invalid rejects the whole request with a reason. Two things go slightly beyond the buttons, both harmless:
--seconds sets the auto-unlock time for one run (still 30–600, in steps of 10), and selftest makes Fushi send itself synthetic keys (F19, and Esc with --escape) — only when Fushi is certain to swallow them (keyboard lock active, or the black screen frontmost). Otherwise it reports that the check must be done by hand and sends nothing.
- Requests older than 60 seconds are discarded, so a stale request can never lock the keyboard the next time the app opens. Only regular files up to 4 KB are read (symlinks are not followed), and each request runs at most once.
- The folder is readable and writable only by your user. Any program already running as you could also write a request there. It can ask Fushi to start cleaning, but every start has the 3 s countdown and ends when you hold Esc for 3 s; after you end cleaning by hand, requests cannot start it again for 60 s, and requests may start at most 10 times per 10 minutes. To turn the entry off:
defaults write com.wlee717727.Fushi agent.enabled -bool NO.
selftest cannot verify the physical built-in trackpad, touch screen or mouse (their hardware source cannot be faked); test those by hand.
If macOS stops fushi-cli right away (downloaded with a browser)
Fushi is not notarized by Apple. When the ZIP was downloaded with a web browser, macOS marks every file inside as quarantined, and running fushi-cli from Terminal is stopped immediately (exit code 137; Terminal shows only killed). The app itself still opens with Open Anyway, but that may not be enough for fushi-cli (not verified). Copies you build yourself or download with gh release download are not affected (verified). If a copy moved over iCloud or a USB drive shows the same problem, use the same fix.
- Check the ZIP you downloaded (not the unzipped app) against the SHA-256 in the release notes:
shasum -a 256 ~/Downloads/Fushi-v0.5.1-macOS-Universal.zip
- Remove the quarantine mark from the whole app (removing it from
fushi-cli alone is not enough):xattr -dr com.apple.quarantine /Applications/Fushi.app
If Fushi.app is somewhere else, type the command and a space, then drag Fushi.app from Finder into the Terminal window to fill in its path.
macOS will no longer ask for confirmation when opening this copy, so do this only for a copy downloaded from this project’s Releases page whose checksum you have confirmed.
Privacy
- Fushi blocks input only while cleaning. It never records what you type and has no network access.
- Diagnostics stay on your Mac (unified log) and are copied only if you choose “Copy Diagnostics”.
- Found a security problem? Please report it privately — see SECURITY.md.
Languages
English, 繁體中文, 简体中文, 日本語, 한국어, Español — chosen automatically from your system language (anything else falls back to English), or pick one in Fushi › Settings › Language. Want to add yours? See docs/TRANSLATING.md.
How it works
- Screen Cleaning covers every display with a black window above the menu bar and Dock.
- Keyboard locking uses an active
CGEventTap that drops key and media-key events.
- Trackpad locking identifies which physical device sent each pointer event and drops only those from the built-in trackpad, so external mice and the touch screen keep working. This uses a private IOKit function; if a future macOS removes it, Fushi lets every event through instead of locking you out.
- Every lock has its own watchdog timer, hold-Esc timer and permission check — none of them depend on the UI thread.
Build from source
Requires Xcode and XcodeGen.
scripts/build.sh
This generates the project, runs the unit tests, builds a Release app and copies Fushi.app to the project folder. To open in Xcode: xcodegen generate && open Fushi.xcodeproj.
Development notes:
- Builds are ad-hoc signed.
signing/Fushi.req pins the Release app’s code-signing identity to its bundle ID, so the Accessibility permission survives rebuilds. Release builds enable the Hardened Runtime and carry no get-task-allow entitlement, so other processes cannot inject code into Fushi to borrow its permission.
- The Debug build is a separate app (“Fushi Dev”, bundle ID
…Fushi.debug) whose auto-unlock is capped at 30 seconds, so a bug can never lock you out for long.
- Run unit tests with
xcodebuild -scheme Fushi test. Debug-only tools: -FushiSnapshot <folder> renders the lock panels to PNG without locking anything.
The repository also contains FushiProbe, a listen-only diagnostic tool used during development to measure how the touch screen, trackpad and mice appear to macOS (see docs/PROBE-GUIDE.md). Build it with FUSHI_COPY_PROBE=1 scripts/build.sh.
License
The source code is licensed under the Apache License 2.0: you may use, modify and redistribute it.
The app icon and illustrations (Design/ and the image sets in Assets.xcassets) are not covered by the Apache License — all rights reserved. The name “Fushi” / “拂拭” identifies the official app. Forks must use their own name, icon and artwork (see NOTICE).
Fushi is an independent project and is not affiliated with, endorsed by, or sponsored by Apple Inc. Apple, Mac, MacBook Pro, macOS and Touch ID are trademarks of Apple Inc.
Ideas (no code copied) from LinearMouse (identifying the source device of an event), Mac Pause and KeepClean.
The name comes from a Zen verse: “Wipe it diligently, and let no dust gather.” (時時勤拂拭,勿使惹塵埃)
评论