How perryvegehan/cleanlaptop works
CleanLaptop is a small Python utility that captures a webcam image, saves it as photo.png, and displays it. The documented setup runs the script once, and the installed pre-commit hook runs it before commits. The capture and display behavior is visible in scripts/script.py; setup and hook wiring are documented in the README, but their source contents were not sampled.
Main entry points: script.py Photo capture · setup.sh Setup command
Components 7
Other components
- User
- Git commit
- Setup command
setup.sh - Photo capture
scripts/script.py - Webcam
- Saved photo
- Photo window
Connections 6
- User → Setup command: runs setup
README.md - Setup command → Photo capture: runs once
README.md - Git commit → Photo capture: runs before commit
README.md - Photo capture → Webcam: captures frame
scripts/script.py - Photo capture → Saved photo: writes image
scripts/script.py - Photo capture → Photo window: displays frame
scripts/script.py