cd /news/ai-tools/control-your-mac-by-knocking-on-the-… · home › topics › ai-tools › article
[ARTICLE · art-164161] src=twitter.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

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

A developer built Desk Knock, a project that uses an iPhone's accelerometer to detect desk knocks and send commands to a Mac over Wi-Fi, with Claude assisting in the build. The iPhone sits on the desk, counts the knocks, and maps them to actions: 2 knocks pause, 3 skip to the next track, and 4 turn the screen off. The setup requires no installed app, running entirely in a Safari page.

read1 min views1 publishedNov 4, 2026
Control your Mac by knocking on the desk (iPhone accelerometer)
Image: source

🤯 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 = 3 = next 4 = screen off

── more in #ai-tools 4 stories · sorted by recency
── more on @desk knock 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/control-your-mac-by-…] indexed:0 read:1min 2026-11-04 · —