mirror of
https://github.com/brzzdev/Beans.git
synced 2026-10-20 22:26:08 +00:00
macOS menu bar app that keeps your display awake. Built with SwiftUI and TCA.
- Swift 86%
- Just 13.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
## Summary Drops the `// swiftformat:disable:next privateSwiftUIDynamicProperties` directive added during the mise move. brzzdev/Configs#7 removed the rule from the shared SwiftFormat config, so it's dead. ```diff -// swiftformat:disable:next privateSwiftUIDynamicProperties @Bindable var store: … ``` The store stays non-private: its caller uses the memberwise init. ## Evidence - SwiftFormat 0.64.0 lint against the current Configs@main config: 0 files to change, and the pre-commit hook leaves `@Bindable var store` as it is. ## Merge Danger **Door:** two-way **Blast Radius:** none |
||
| .github/workflows | ||
| .scripts | ||
| Beans | ||
| Beans.xcodeproj | ||
| Packages | ||
| .gitignore | ||
| .swiftformat | ||
| .swiftlint.yml | ||
| .swiftlint_child.yml | ||
| CLAUDE.md | ||
| ExportOptions.plist | ||
| GLOSSARY.md | ||
| justfile | ||
| LICENSE | ||
| mise.toml | ||
| README.md | ||
| renovate.json | ||
Beans
A macOS menu bar app that prevents your display from sleeping.
A modern alternative to Caffeine, KeepingYouAwake, and similar utilities — built with SwiftUI and The Composable Architecture.
Features
- Prevent idle display sleep indefinitely or on a timer (30 min, 1 hr, 2 hr, 4 hr)
- Activate on launch
- Launch at login
- Notarized and signed for direct distribution
- Survives menu bar icon hiding (macOS 26+)
Install
Download the latest release from the Releases page, unzip, and drag Beans.app to /Applications.
Build from source
just build # build
just test # run tests
just install # archive, notarize, install to /Applications
Requires Xcode 26+ and mise. mise install provides just and the rest of the tooling.
How it works
Beans holds an IOPMAssertionCreateWithName power assertion of type PreventUserIdleDisplaySleep. This prevents the display from dimming or sleeping due to inactivity. Closing the lid or manually sleeping the Mac still works normally.
License
MIT