Hit your MacBook — it swears back at you in Polish.
Uses the real hardware accelerometer (Apple Silicon SPU) to detect physical impacts via jerk/vibration analysis. Plays random swear audio clips through a native macOS menu bar app.
- sensor.py — root daemon that reads the accelerometer via
macimuand detects hits using jerk-based vibration analysis - KickUI.swift — native Swift menu bar app (👊) that receives hit events and plays audio
- start.sh — launches both with one command
- Apple Silicon MacBook (M1/M2/M3/M4)
- macOS 14+
- Python 3 +
macimu+edge-tts - Xcode Command Line Tools (for
swiftc)
# Install dependencies
pip3 install macimu edge-tts
# Generate audio (or drop your own .mp3 files into audio/)
python3 generate_audio.py
# Build the menu bar app
bash build.sh
# Run (needs sudo for accelerometer)
./start.shDrop your own .mp3 files into the audio/ folder. The app picks them up automatically and plays them in shuffled order with no repeats.
sensor.py (root) ──[unix socket]──> KickUI (user)
│ │
accelerometer menu bar 👊
jerk detection audio playback