I built an app that takes screenshots when you physically tap your MacBook.
No shortcut. No button. No interruption.
Just tap the chassis — screenshot taken.
Here's how it works, and why it was harder than it sounds. 🧵
The accelerometer has been sitting inside your MacBook the whole time.
M1, M2, M3, M4 — every single one.
I'm releasing TapShot for free to the first people who want to try it. Drop a reply or DM me and I'll send you a license key.
Would love feedback — especially if you're on a specific chip or macOS version. Still ironing out edge cases across different hardware.
I built an app that takes screenshots when you physically tap your MacBook.
No shortcut. No button. No interruption.
Just tap the chassis — screenshot taken.
Here's how it works, and why it was harder than it sounds. 🧵
Every Apple Silicon MacBook (M1, M2, M3, M4) has a hidden accelerometer buried inside the SPU chip. Apple uses it to detect falls and protect the drive. They don't document it. There's no public API. It doesn't show up in any framework.
I found it by digging through the IOKit registry — raw HID device, vendor page 0xFF00, reading 3-axis acceleration at 100Hz.
Once I had the data, the hard part wasn't reading the sensor. It was making the detection feel intentional.
First version fired on everything. Cat on the desk? Screenshot. Bumpy Uber ride? Screenshot. Someone typing nearby? Screenshot.
So I built a full tap sequence detector — double tap, triple tap, configurable time window, cooldown between captures, and multiple algorithms voting on whether the impact was real. Then I added a desk mode: the app reads the tilt of the device using a slow low-pass filter on the X/Y axes. When you pick up the laptop, it pauses automatically. Put it back on the desk — it's back.
The feedback is native: real camera shutter sound, smooth flash, animated thumbnail preview sliding in from the corner. Pure Swift. No Electron. No dependencies.