Menu bar app for macOS that provides caffeinate-like behavior with a tray icon.
- Keep-awake defaults to
-i -d -son first launch. - Eye icon in the menu bar:
- Enabled: open eye (
eye.fill) - Disabled: closed eye (
eye.slash.fill) - Duration options: infinite, 15m, 30m, 1h, custom.
- Launch at login toggle.
- Startup registration uses
SMAppServicewith a LaunchAgent fallback for dev/unsigned builds.
- macOS 13+
- Xcode command line tools (
swift,iconutil)
swift buildswift run CaffenateMenuBarDefault output is inside this repo (not /Applications):
./scripts/install_app.shGenerated app:
dist/Caffenate.app
Run it:
open dist/Caffenate.appIf you explicitly want /Applications:
./scripts/install_app.sh /ApplicationsThis repository includes an executable test runner:
swift run CaffenateCoreTestRunnerSources/CaffenateCore: state, settings, timer.Sources/CaffenateMenuBar: menu bar app, power assertions, startup registration.Sources/CaffenateCoreTestRunner: automated logic tests.docs/requirements.md: requirements.docs/design.md: design document.