{"slug": "control-your-mac-by-knocking-on-the-desk-iphone-accelerometer", "title": "Control your Mac by knocking on the desk (iPhone accelerometer)", "summary": "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.", "body_md": "🤯 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\nThe phone sits on the desk, picks up the tiny shake when I knock, counts the\nknocks and sends them to my Mac over Wi-Fi. No app, just a Safari page.\n2 knocks = pause\n3 = next\n4 = screen off", "url": "https://wpnews.pro/news/control-your-mac-by-knocking-on-the-desk-iphone-accelerometer", "canonical_source": "https://twitter.com/BourAbdelhadi/status/2118098820441465232", "published_at": "2026-11-04 22:18:41+00:00", "updated_at": "2026-11-04 22:50:44.582443+00:00", "lang": "en", "topics": ["ai-tools"], "entities": ["Desk Knock", "Claude", "Apple", "iPhone", "Mac", "Safari"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/control-your-mac-by-knocking-on-the-desk-iphone-accelerometer", "markdown": "https://wpnews.pro/news/control-your-mac-by-knocking-on-the-desk-iphone-accelerometer.md", "text": "https://wpnews.pro/news/control-your-mac-by-knocking-on-the-desk-iphone-accelerometer.txt", "jsonld": "https://wpnews.pro/news/control-your-mac-by-knocking-on-the-desk-iphone-accelerometer.jsonld"}}