DockLock v0.2.1
Auto-lock your Mac on Bluetooth proximity + panic-hide sensitive apps with one hotkey.
What's New
π§ Panic Mode β No More Overlay Flash on App Switch
- Switching from a non-safelisted app to a safelisted app no longer causes a blur flash
- Previously: the overlay briefly showed a wrong-sized hole (blur strip along the window edge) before correcting itself β caused by the app relaying out its window chrome (tab bar, traffic lights) during activation, making the cached AX rect momentarily narrower than the final rect
- Now: overlay alpha clears to 0 instantly on every app switch (suppressing macOS's implicit CA fade), then rebuilds the mask from the settled rect 70 ms later and fades back in smoothly over 180 ms
- Rapid back-to-back app switches cancel any pending reapply so no stale state accumulates
Bug Fixes
- Fixed: blur flash when switching from a non-safelisted to a safelisted app during Panic Mode
- Fixed: mask rebuild on activation could query AX mid-relayout, producing a hole too narrow for the app's actual window β now rebuilds only after the window has settled
Installation
- Download
DockLock-v0.2.1.dmgbelow - Open the
.dmgand drag DockLock.app to Applications - Launch from Applications β right-click β Open on first launch (see note below)
- Grant Accessibility and Camera permissions when prompted
β οΈ Gatekeeper warning: macOS will show a security warning on first launch since the app is not yet notarized. Right-click β Open β Open anyway, or run:xattr -cr /Applications/DockLock.appNotarization is planned for a future release once the Apple Developer account is active.
Requirements: macOS 15 Sequoia or later Β· Apple Silicon or Intel
Build from Source
git clone https://github.com/atomsbaza/DockLock.git
cd DockLock
open DockLock.xcodeprojRequires Xcode 16+ and Swift 6.0+.
What's Next
- Notarized release β no Gatekeeper warning, Homebrew Cask (
brew install --cask docklock) - iCloud Sync activated β Settings, App Safelist, and Lock History sync across all your Macs
Feedback
Found a bug? Open an issue
Have a feature request? Request here
Security issue? Email atomsbaza2@gmail.com