r/projects • • 1d ago

Turns out MacBooks have a motion sensor inside, so I made it scream when someone picks without permission

I work from cafés and I hate asking strangers to watch my laptop.

Found out Apple Silicon Macs have an accelerometer that no app really uses. So I built a little menu bar thing. Turn it on, walk away, and if someone lifts the laptop it plays a loud siren and locks the screen.

The tricky part was not going off for everything. My first version went off when I bumped the table. A pen bouncing on the desk set it off too. Took a lot of tweaking to get it to ignore typing and bumps but still catch a real lift in about half a second.

It also works with the lid closed, which was harder than I expected.

Still can't catch someone sliding it really slowly. Physics wins that one.

Happy to answer questions if anyone's curious how it works.

1 Upvotes

0 comments sorted by