Focus mode built for developers. A macOS menu bar app that lets you hop between your editor, docs and PDFs. Anything else gets bounced back before you even see it.
FocusLock is macOS-only for now. Open this page on your Mac to download it.
Requires macOS 14+ · Apple Silicon · v0.1.0
FinderFileEditViewdistractions blocked:✕014:02
Try it: open an app from the dock ↓
allowed distraction
1fn main() {2let session = Session::start(25);3while session.running() {4 focus(); // you are here5 }6 ship("it");7}
§3 · Memory ordering
Lock-free queues in practice
A consumer must observe the producer's write before it reads the slot. Acquire/release pairs give exactly that guarantee, without a full fence.
$ cargo test Compiling focus v0.1.0running 17 teststest result: ok. 17 passed$
Up next: 10 hours of rain sounds (autoplay)
you up? 👀
did you see the thing
focusing, back in 20
@here lunch??
♥ 2.1k♥ 318♥ 47♥ 9.9k♥ 702♥ 12
01 / the problem
One tab for the docs. Then forty.
You open the browser to look up one function. Something autoplays. A chat pings. Twenty minutes later you're three videos deep and the compiler error is still there. Willpower doesn't scale. Friction does.
docs: Vec<T>error[E0502] borrow…paper.pdf
🔒FocusLock back to the 3 tabs you needed
3 tabs open
02 / how it works
Three steps. Zero willpower.
✓ Editor✓ PDF Reader✓ Terminal✓ docs.rsVideoChat
01
Pick your allowlist
Tick the apps and sites you work in. Everything else is off-limits by default, so there's no blocklist to maintain.
File Edit View🔒 25:00
Start 25 minStart 50 min
02
Start a session
One click in the menu bar. The countdown sits up there, quietly, while you work.
✕Nope. 24 min left. Video is blocked during your focus session.
03
Get bounced
Switch to anything off the list and it vanishes. You land back in the last app you were allowed to be in.
03 / features
Built like a dev tool. Because it is one.
allowlist, not blocklist
List the 5 things you need, not the 5,000 you don't.
Blocklists are a game of whack-a-mole you always lose. FocusLock flips it: anything you didn't allow is blocked.
blocklist
video site
social site
news site
other video site
forum
that new app
…
allowlist
editor
terminal
pdf reader
docs.rs
github.com
done ✓
bounce-back
Off-list apps bounce
Switch to a distraction and FocusLock hides it and brings back the last allowed app. You never get to scroll.
browser
Website checks in Chrome
The active tab is checked every 1.5 s. A site that isn't allowed gets swapped for a page that shows your time left. Subdomains included.
passes
Passes cost a reason
Really need something? Type why (10+ characters) and get a 2-minute pass. Three per session. Typing it out is usually enough to change your mind.
quit friction
Quitting asks why too
Quit during a session and FocusLock wants a reason first. "Stop session" is always there as the honest emergency exit, and it's logged.
local-only
Stats that stay on your Mac
Focus time, sessions, blocked attempts, top distractions. It's all read from a local log file. No account, no analytics, no servers.
native
Tiny, native, Rust
A ~2 MB menu bar app. No Electron, no bundled browser. It sleeps until something actually happens.
04 / config
It's a TOML file. Obviously.
Everything lives in ~/.config/focuslock/config.toml. Commit it to your dotfiles, diff it, grep it.
Prefer clicking? Settings in the app lists your installed apps with checkboxes, and it writes the same file.
Find any app's bundle ID with:
osascript -e 'id of app "Visual Studio Code"'
~/.config/focuslock/config.toml
# Apps you can switch between during a session.allowed_apps = [
"com.microsoft.VSCode",
"net.sourceforge.skim-app.skim",
"com.apple.Terminal",
"com.google.Chrome",
]
# Sites allowed in Chrome. Subdomains included.allowed_domains = [
"docs.rs", "doc.rust-lang.org",
"github.com", "stackoverflow.com",
"localhost",
]
# The escape hatch.max_passes = 3# per sessionpass_minutes = 2min_reason_chars = 10# "because" won't cut it
05 / install
Install in ten seconds.
FocusLock is macOS-only for now. These steps are for a Mac with Apple Silicon running macOS 14 or later.
option 1
recommended · no warning
One line in Terminal
Paste this into Terminal. It downloads FocusLock, verifies its checksum and signature, puts it in Applications and opens it.
$ curl -fsSL …/install.sh | bash==> Downloading FocusLock…
==> Verifying checksum…
==> Installing to /Applications/FocusLock.app…
==> Installed FocusLock 0.1.0.
==> Launched. Look for 🎯 in your menu bar.
Checks the SHA-256 and the code signature before installing
Replaces an older version (and quits it first)
Uninstall: quit FocusLock, delete it from Applications
Why no warning? macOS only flags files downloaded by a browser. Read the script first
You only do this once. (Right-click → Open no longer works on macOS 15 and later.)
🔓
Last step, either way: let it check Chrome
On your first session, macOS asks whether FocusLock may control Google Chrome. Click OK. Missed it? System Settings → Privacy & Security → Automation → FocusLock → turn on Google Chrome.
06 / faq
Questions, answered.
Is it free?
Yes, free during early access. No account, no trial timer. If paid features ever come, the version you're using won't stop working.
Is it open source?
The source code is available under FSL-1.1-MIT (Functional Source License). You can read it, change it and use it for yourself or your company. The one thing you can't do is ship it as a competing commercial product. Two years after each release, that version becomes plain MIT.
Does it collect any data?
The app: no. There's no account and no analytics, and FocusLock never sends anything anywhere. Your settings and stats are plain files in ~/.config/focuslock and ~/.local/share/focuslock. Delete them and they're gone. This website counts visits and download clicks anonymously, with no cookies and no personal data. That's all.
Why does macOS show a security warning?
FocusLock isn't notarized by Apple yet (that needs a paid developer account). The app is signed, but macOS still blocks the first launch of any un-notarized app you download in a browser. Use the one-line Terminal installer to avoid the warning entirely, or follow the "Open Anyway" steps in the install section. Notarization is planned.
Which browsers does it check?
Google Chrome for now: FocusLock reads the active tab's address and swaps blocked sites for a "time left" page. Other browsers are planned. Until then, leave them off your allowed apps and they'll simply bounce.
What permissions does it need?
Only Automation for Google Chrome, so it can read the current tab. Hiding other apps and showing notifications need no special permissions. It never launches Chrome by itself.
Can I cheat?
Sure. "Stop session" is always one click away, and passes exist for real emergencies. FocusLock adds friction, not handcuffs. Most distractions die in the two seconds it takes to type a reason.
Does it work on Intel Macs?
Not yet. FocusLock needs a Mac with Apple Silicon and macOS 14 or later.