Free Mac app

Motion

Motion lets you control your MacBook with hand gestures using its built-in camera. Works on Apple silicon MacBooks (M1 or later) running macOS 14 or newer.

Two ways to get Motion.

Ready to download

ZIP file · Free resource

Get started

  1. 1Download the ZIP, unzip it, and drag Motion into Applications.
  2. 2Open Motion. If macOS blocks it and you trust the download, go to System Settings → Privacy & Security → Open Anyway.
  3. 3Click the hand icon in the menu bar and choose Start tracking. Allow Camera and Accessibility access when prompted.

Try it

  1. 1Point with your index finger to move the cursor.
  2. 2Touch your thumb to your index finger to click.
  3. 3Move an open palm up or down to scroll.
  4. 4Swipe one open palm left or right to switch tabs.
  5. 5Swipe both open palms together left or right to switch windows.
  6. 6To turn it off, click the hand icon and choose Stop tracking.

Copy-and-paste prompt

Give this prompt to Codex

Prefer to build it yourself? Paste this into Codex and it builds the same app on your Mac, then hands you a ZIP you can keep.

Build a working native macOS menu-bar app called Motion. It lets me control my MacBook with hand gestures using the built-in camera. I want to open the app, click “Start tracking,” and use it from my normal seated position without calibration.

Use Swift, AppKit, and SwiftUI. Use AVFoundation for camera capture, Apple Vision for hand tracking, and native macOS APIs to control the pointer, scroll, and switch tabs and windows. Target Apple silicon MacBooks running macOS 14 or later. Keep everything on-device. Process camera frames in memory and discard them immediately. The app should work offline with no account, API key, or third-party dependency.

Implement these five gestures exactly:

1. Point to move the mouse
   When I extend my index finger and curl my other fingers, move the actual macOS pointer with my fingertip. Either hand should work. Moving my hand to my right should move the pointer to the right. Map a comfortable central area of the camera frame to the entire built-in display so I can reach the corners without stretching. Smooth small tremors while keeping deliberate movement responsive.

2. Pinch to click
   While pointing, touch my thumb to my index fingertip to perform one left click. As my thumb approaches, freeze the pointer so bending my finger doesn’t pull it off a small target. Click at that last pointer position. Holding the pinch must produce exactly one click. I must separate my fingers before another click can fire. A hand that enters the frame already pinched should do nothing.

3. Move one open palm vertically to scroll
   Scroll the content under the pointer. Moving my palm up should move the page content up, like dragging a page on a phone. Moving down should reverse it. Scroll continuously while the palm moves and stop when it stops. Keep the pointer parked.

4. Swipe one open palm horizontally to switch tabs
   Swipe right for the next tab or left for the previous tab in the frontmost window. Each deliberate swipe changes exactly one tab. Use the app’s tab commands where available and support Safari. A brief pause or lowering my hand should let me start a new swipe.

5. Swipe two open palms together to switch windows
   When both palms move horizontally in the same direction, switch to the next or previous visible window across apps on the current desktop. For example, I should be able to switch from Safari to Finder. Keep the cycling order stable when windows come forward. Both hands must actually move together. One moving hand beside a stationary hand should do nothing.

Make gesture transitions reliable. Once a palm movement is clearly vertical or horizontal, lock that direction for the stroke. A diagonal drift during scrolling must never switch tabs. Two hands take priority over one, and lowering one hand after a window swipe must not trigger a tab swipe. When tracking is lost, clear pending gestures so I can lower my hands and type normally.

Keep the interface small. Use a hand icon in the macOS menu bar. Clicking it opens a compact panel with the name “Motion,” a tracking status, one Start/Stop button, a five-row gesture guide, and Quit. Show whether tracking is off, the camera is starting, Motion is looking for a hand, or one or two hands are in view. Use a muted green accent and native Mac controls.

Launch with tracking off. On first use, guide me through Camera and Accessibility permissions and show which permission still needs attention. Start capture only after I choose Start and both permissions are available. Once tracking starts, dismiss the panel so I can use the app I was working in. Stop and Quit should immediately stop gesture input and release the camera. Stop tracking when the Mac sleeps or the user session becomes inactive.

Build the app in the current workspace. Keep the gesture recognizer independent of the camera and system input so you can test it with synthetic hand positions. Test both hands, held pinches, rearming after release, tracking loss, diagonal scroll drift, one tab change per swipe, and two-hand window swipes without accidental tab changes.

Deliver a runnable build/Motion.app, a repeatable build script, a short README, and a ZIP I can share with another Apple silicon Mac user. Use local ad hoc signing for this prototype. Run the tests, build the release app, verify the packaged bundle, and open it with tracking off.

The first live acceptance test is simple: I open Safari, point at its Reload button, and pinch three separate times. Each pinch should reload the page exactly once without the cursor slipping off the button. Report which checks you verified automatically and leave the physical gesture test for me.