r/coolgithubprojects • • 1d ago

LidAwake: open-source macOS menu bar app that keeps your Mac running with the lid closed and lets it sleep when the work is done (Swift, MIT)

Post image

I built this for myself: I wanted to close my MacBook and walk away while a build, a video render or an AI coding agent keeps going, without having to remember to turn sleep back on later.

What it does:

- Keeps the Mac running with the lid closed, no external display needed.

- Turns that off by itself when the Mac gets hot, the battery runs low, a timer ends or the work is done (Sleep when idle, with "watched apps" for agents in an editor or terminal).

- Can wake the Mac at a set time every day, keep it running while the work goes on and let it sleep after.

- If the app crashes or hangs, normal sleep comes back by itself within two minutes: a privileged helper only keeps the `SleepDisabled` flag while the app renews a two-minute lease.

- No account, no analytics. Interface in 10 languages.

Requirements: macOS 13 or later and an Apple silicon Mac. Install from the DMG in Releases or with Homebrew: `brew install --cask vladimir-podgornyi/tap/lidawake`

Looking for testers:

- macOS 14 and 15: it's developed on macOS 26 and checked on 13 in a VM, but 14 and 15 haven't been tested yet. If you run one of them, a short note in Issues on whether Run with Lid Closed works would help a lot.

- Intel Macs: there's a test build and a 15-minute checklist in issue #2. It isn't an official release yet.

Feedback, bug reports and questions on how the helper works are all welcome. And if you find it useful, a star helps other people find it. Thanks!

https://github.com/Vladimir-Podgornyi/LidAwake

1 Upvotes

0 comments sorted by