Skip to content
mikayelgrPublic
forked from taigrr/spank

About

Spank your MacBook twice to take a screenshot. Uses Apple Silicon accelerometer via IOKit HID. A custom fork of the original SPANK.

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

SPANK (Screenshot Edition) 📷👋

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.

Installation

Use the provided script to build and install both the daemon and tray agent:

./install.sh

Note: 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.

Uninstallation

To easily remove all installed components:

./uninstall.sh

About

Spank your MacBook twice to take a screenshot. Uses Apple Silicon accelerometer via IOKit HID. A custom fork of the original SPANK.

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Contributors

Languages