Gstrl โ€” Control Your Mac With Hand Gestures

2 min read Original article โ†—

Gesture, voice, and AI control for macOS.

โ†“ Scroll to explore

Just your Mac's webcam. No special hardware.

cursor

๐Ÿ‘Œ Pinch to move

Right hand pinch โ€” move your hand to drag the cursor anywhere on screen.

click

๐Ÿ‘Œ Pinch to click

Quick left pinch for click. Hold for 1 second for right-click.

screenshot

โญ• Circle to screenshot

Draw a circle while pinching โ€” captures that region to your clipboard instantly.

โ†‘ โ†“ โ† โ†’

๐Ÿ– Swipe for arrows

Open hand flick in any direction โ€” up, down, left, right arrow keys.

dictate

โœŠ Fist to speak

Hold a fist to activate speech-to-text. Say "press enter" or just dictate.

AI agent

โœŠโœŠ Both fists for AI

Hold both fists โ€” ask Claude anything. Gets spoken back to you.

scroll โ†•

๐Ÿ‘ŒโœŠ Pinch + fist to scroll

Left pinch, right fist. Move left hand up/down to scroll.

โŒซ delete

๐Ÿค™ Six to delete

Hold the shaka โ€” deletes characters. Both hands ๐Ÿค™๐Ÿค™ = delete lines.

drag / select

๐Ÿ‘Œ๐Ÿ‘Œ Both pinch to drag

Left pinch holds click, right hand pinch moves โ€” drag and drop files, select text.

Voice commands.

Say commands to trigger actions instead of typing. Dictation supports multiple languages.

๐Ÿ‘†

Click

click ยท right click ยท command click

โŒจ๏ธ

Press + key

press enter ยท press delete ยท press tab ยท press escape ยท press up/down/left/right

โŒ˜

Modifiers

command z ยท control c ยท shift left ยท option delete ยท command shift z

Get started.

Clone, build, run. No accounts needed.

Terminal

git clone https://github.com/TomYang-TZ/Gstrl.git
cd Gstrl
make install
make run

Requires macOS 14+, a webcam, and Swift 5.9+. Permissions auto-prompt on first launch. Claude Code CLI optional for AI agent.

How it works.

All processing on-device. Zero latency. Zero cloud.

1

Webcam captures frames

AVCaptureSession at 30fps (configurable to 120fps) feeds frames to Apple Vision.

2

Vision detects hand poses

VNDetectHumanHandPoseRequest identifies 21 joints per hand, every frame.

3

Classifier maps to actions

Pinch detection, velocity-based swipes, and combo tracking turn poses into CGEvents.

4

Speech + voice commands

Hold a fist to activate speech. Dictate text or say "press enter", "command z", "click" to trigger actions. Dictation supports multiple languages.