r/devtools • u/Anshu1225 • 22d ago
LidCommit: Safe Git auto-save triggered by your laptop lid
Most Git autosave tools run on continuous intervals or cron jobs, which can clutter your commit history with partial keystrokes.
LidCommit takes a different approach: it only commits when you actually close your laptop lid to step away from your desk.
Features:
- Monitors OS power broadcast interrupts (0% CPU impact).
- Only inspects projects actively open in an IDE (VS Code, Cursor, JetBrains).
- Pre-commit secret scanning engine prevents pushing credentials or `.env` files.
- Generates clean semantic commits with LLMs or fallback timestamps.
- Native dashboard for pausing specific repositories.
Open-source on GitHub: https://github.com/Gingaaa/lid-commit
5
Upvotes
1
u/silas_bennett46 22d ago
using the laptop lid as a trigger is actually a clever idea. way better than committing every few minutes lol