[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111141":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":40,"discoverSource":41},111141,"AirCursor","m-afham\u002FAirCursor","m-afham","Use your AirPods as a mouse on macOS, turn your head to point, rest on a button to click. Hands-free, private, open source.","https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Freleases\u002Flatest\u002Fdownload\u002FAirCursor.zip",null,"Swift",274,32,2,1,0,6,50,158,23,86.56,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35],"accessibility","airpods","hands-free","head-tracking","macos","menubar-app","mouse","swift","swiftui","2026-11-10 22:23:30","2026-11-23 18:39:50","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Ficon.png\" width=\"128\" alt=\"AirCursor icon\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">AirCursor\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cb>Your AirPods are now a mouse.\u003C\u002Fb>\u003Cbr>\n  Turn your head to point. Rest on a button to click. Completely hands-free on your Mac.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Freleases\u002Flatest\u002Fdownload\u002FAirCursor.zip\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDownload_for_Mac-AirCursor.zip-0A84FF?style=for-the-badge&logo=apple&logoColor=white\" alt=\"Download AirCursor for Mac\" height=\"44\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Csub>Built by \u003Ca href=\"#about-the-author\">Muhammad Afham\u003C\u002Fa>, senior iOS &amp; macOS engineer\u003C\u002Fsub>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Freleases\u002Flatest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fm-afham\u002FAirCursor?label=latest\" alt=\"Latest release\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS-15%2B-blue\" alt=\"macOS 15+\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green\" alt=\"MIT\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fwelcome.png\" width=\"820\" alt=\"AirCursor guided tour\">\n\u003C\u002Fp>\n\n## What it does\n\nAirCursor reads the motion sensors already built into your AirPods and turns head movement into a smooth, precise pointer. It runs as a native menu bar app. There's no extra hardware, no camera, and no account.\n\n| You do | AirCursor does *(defaults, all remappable)* |\n|---|---|\n| Turn your head | Moves the pointer (smooth, accelerated, works across all your displays) |\n| Rest the pointer on a button | **Hover click.** A ring fills, then it clicks. Only buttons, links, tabs, menus, fields and Dock icons count, so resting on text you're reading never clicks |\n| Press the stem once | Left click |\n| Press the stem twice | Right click |\n| Press the stem three times | Scroll mode: look up\u002Fdown\u002Fleft\u002Fright to scroll |\n| Nod | Left click, landing where you pointed *before* the nod |\n| Shake your head | Pause \u002F resume |\n| Tilt left \u002F right | Your choice: Back\u002FForward, switch Spaces, Mission Control… |\n\nOther actions you can assign: double click, middle click, drag lock, recenter, App windows, the screenshot tool, and more. Shortcuts: **⌃⌥T** pause · **⌃⌥S** scroll mode · **⌃⌥C** recenter · **⌃⌥D** drag.\n\n### A one-minute guided tour\n\nOn first launch AirCursor takes you through two permissions and connecting your AirPods, then has you **try it once for real**: point at a button with your head and hold still until it clicks, or nod. While you do that, it learns how big your natural nod is and tunes nod detection to match. A 3D pair of earbuds mirrors your head in real time the whole way through. If you leave for System Settings to grant a permission, the tour comes back and resumes on the same step.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Ftryit.png\" width=\"410\" alt=\"Try it: point and nod\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fdone.png\" width=\"410\" alt=\"Cheat sheet\">\n\u003C\u002Fp>\n\n## Requirements\n\n- macOS 15 Sequoia or later (Apple silicon or Intel)\n- Headphones with head-tracking sensors: **AirPods Pro** (any generation), **AirPods Max**, **AirPods (3rd generation or later)**, or **Beats Fit Pro**\n\n## Install\n\n1. **[Download AirCursor.zip](https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Freleases\u002Flatest\u002Fdownload\u002FAirCursor.zip)** (always the latest version), unzip it, and move **AirCursor** to Applications.\n2. Open it. If macOS says it can't verify the developer, open **System Settings › Privacy & Security**, scroll down, and click **Open Anyway**. (Only needed for builds that aren't notarized.)\n3. Follow the guided tour.\n\n### Build from source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor.git && cd AirCursor\nmake install     # builds a universal app, copies it to \u002FApplications, launches it\n```\n\n`make run` builds and launches without installing. `make test` runs the unit tests. Building needs Xcode 16 or later.\n\n### Uninstall\n\n1. Quit AirCursor from its menu bar icon (**Quit**).\n2. Delete **AirCursor** from Applications.\n3. Optional: remove its settings and permissions:\n   ```bash\n   defaults delete io.github.m-afham.AirCursor\n   tccutil reset All io.github.m-afham.AirCursor\n   ```\n\n## Permissions & privacy\n\n| Permission | Why |\n|---|---|\n| Accessibility | To move the pointer, click and scroll for you |\n| Motion | To read head movement from your AirPods |\n| Bluetooth | To list, pair and connect your headphones |\n\nMotion data is processed in memory on your Mac and never stored or sent anywhere. AirCursor has no analytics. Its only network requests are a once-a-day check of this repository's latest release on GitHub, so it can tell you when an update is out, and downloading the update when you click **Install & Relaunch**. They carry nothing about you, your Mac or how you use the app, and you can turn it off in **Settings › Shortcuts & General › Updates**.\n\n## Updating\n\nAirCursor tells you when a new version is out and shows what's new. Click **Install & Relaunch** and it downloads the update, checks that it's a genuine signed AirCursor release, replaces itself and restarts. macOS then asks you to switch AirCursor off and on once in **System Settings › Privacy & Security › Accessibility**, and the guided tour opens right at that step. (Versions before 1.0.5 can't check for updates, so download the latest once from the link above.)\n\n## Troubleshooting\n\n**The pointer doesn't move.** AirPods only send head-tracking data to the device they're *playing audio for*. If your iPhone has them, or your Mac's sound output is set to its speakers, no motion arrives. Put the AirPods in, then choose them under **Control Center › Sound**. AirCursor switches the Mac's output to your AirPods automatically when it can, and warns you when it can't.\n\n**After updating from 1.0.6 or earlier, the pointer doesn't move even though Accessibility is on.** Those versions were signed per build, and macOS keeps the old build's permission. Switching it off and on doesn't fix that. Open **System Settings › Privacy & Security › Accessibility**, select AirCursor, remove it with the **−** button, then click **Open Settings** in AirCursor's guided tour and switch it on again. Releases from 1.0.7 on share one signing identity, so permissions carry over to later updates.\n\n**Something else is off.** Open **Settings › Shortcuts & General › Diagnostics**. It checks every link in the chain (permissions, Bluetooth, audio route, motion samples) and marks the first one that's failing.\n\n**Hover click is too fast, too slow, or clicks things I didn't mean to.** Go to **Settings › Clicks & Gestures › Hover click** to change the rest time, or turn it off. It pauses while you type, and it only clicks things macOS reports as clickable.\n\n**Nods don't click, or click by accident.** Go to **Settings › Clicks & Gestures** and adjust **Nod size needed**. The hint underneath shows how big your last nod was. Replaying the guided tour also re-tunes it automatically.\n\n**Stem presses play\u002Fpause my music instead.** macOS sends AirPods presses to the \"Now Playing\" app. AirCursor claims that role while tracking, but if music is playing in another app, that app may win. Head gestures always work.\n\n**Removing an AirPod clicks.** Taking one out sends \"pause\", which counts as a stem press. Pause tracking first (shake or ⌃⌥T), or turn off Automatic Ear Detection.\n\n## How it works\n\n```\nCMHeadphoneMotionManager (~25 Hz attitude)\n   → MotionDifferentiator      angular rates (deg\u002Fs), wrap-around + gap safe\n   → GestureDetector           nod \u002F shake \u002F tilt (direction-agnostic, with cooldown)\n   → PointerMapper             dead zone + sensitivity + bounded acceleration → px\u002Fs\n   → PointerSmoother (120 Hz)  frame-rate-independent easing; stops when samples go stale\n   → EventSynthesizer          CGEvent move \u002F click \u002F drag \u002F scroll \u002F keys\nMPRemoteCommandCenter          stem presses (play\u002Fpause, next, previous) → triggers\n```\n\n- **Relative (velocity) mapping.** The pointer follows how fast you turn your head, not your absolute head angle. Nothing to calibrate, and no drift.\n- **Gestures don't move your target.** Recent pointer positions are buffered. When a nod or shake is recognized, the click lands where you were pointing when the gesture began.\n- **Your mouse still works.** Move a real mouse or trackpad and AirCursor picks up from the new position.\n- **Safe by default.** A held drag is released on pause, disconnect, stalled motion or sleep.\n\nThe pointer and gesture core (`Sources\u002FAirCursorCore`) is plain Swift with unit tests. See [CONTRIBUTING.md](CONTRIBUTING.md) for a tour of the code.\n\n## Contributing\n\nIssues and PRs are welcome, especially gesture tuning across AirPods models. Please attach the Diagnostics output to bug reports. PRs get an automated review against the project's rulebook, and merged app changes are released automatically. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\nUsing AirCursor? [Share how in Discussions](https:\u002F\u002Fgithub.com\u002Fm-afham\u002FAirCursor\u002Fdiscussions). And if it's useful to you, a ⭐ helps others find it.\n\n## About the author\n\nAirCursor is built by **Muhammad Afham**, a senior iOS & macOS engineer with 7+ years on Apple platforms and 25+ shipped apps. I'm open to senior roles, freelance projects and collaborations.\n\n[mafham.dev](https:\u002F\u002Fmafham.dev) · [LinkedIn](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fm-afham\u002F) · [Book a call](https:\u002F\u002Ftopmate.io\u002Fm_afham)\n\n## License\n\n[MIT](LICENSE)\n\n---\n\n\u003Csub>AirPods, AirPods Pro, AirPods Max, Beats and macOS are trademarks of Apple Inc., registered in the U.S. and other countries. AirCursor is an independent open-source project and is not affiliated with, sponsored by, or endorsed by Apple Inc. The 3D earbuds and app icon are original artwork.\u003C\u002Fsub>\n","AirCursor 是一款 macOS 原生辅助工具，利用 AirPods 内置运动传感器实现免手操作鼠标功能。它通过实时解析 AirPods 的陀螺仪与加速度计数据，将头部转动映射为光标移动，支持悬停点击、茎杆单\u002F双\u002F三击、点头触发左键、摇头暂停等可自定义交互；所有逻辑在本地运行，无需摄像头、网络或额外硬件。适用于行动不便用户、临时双手受限场景（如演示、康复训练）及注重隐私的无障碍交互需求。","2026-11-24 04:40:13","CREATED_QUERY"]