# Control your Mac by knocking on the desk (iPhone accelerometer)

> Source: <https://twitter.com/BourAbdelhadi/status/2118098820441465232>
> Published: 2026-11-04 22:18:41+00:00

🤯 I wanted to use my iPhone's sensors to control my Mac in a way I hadn't seen before. Claude helped me build this, I called it Desk Knock
The phone sits on the desk, picks up the tiny shake when I knock, counts the
knocks and sends them to my Mac over Wi-Fi. No app, just a Safari page.
2 knocks = pause
3 = next
4 = screen off
