Original project by taigrr. Forked to capture screenshots on consecutive slaps! Maintained by Mikayel Grigoryan.
A macOS (Apple Silicon) utility that uses the internal accelerometer to detect slaps to your laptop. Slap your MacBook twice within a second to take a screenshot.
It consists of two parts running in the background:
spankd: A root daemon that reads raw accelerometer data.spank: A user-space agent with a menu bar tray icon that captures screenshots.
Use the provided script to build and install both the daemon and tray agent:
./install.shNote: The install script requires sudo. macOS will prompt you for Screen Recording permissions upon taking the first screenshot. If screenshots fail, ensure the app has permission in System Settings > Privacy & Security.
To easily remove all installed components:
./uninstall.sh