mirror of
https://github.com/brzzdev/Beans.git
synced 2026-09-05 06:20:12 +00:00
macOS menu bar app that keeps your display awake. Built with SwiftUI and TCA.
- Swift 80.9%
- Just 18.2%
- Ruby 0.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [nicklockwood/SwiftFormat](https://redirect.github.com/nicklockwood/SwiftFormat) | minor | `0.62.1` → `0.63.0` | --- ### Release Notes <details> <summary>nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)</summary> ### [`v0.63.0`](https://redirect.github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#0630-2026-08-30) [Compare Source](https://redirect.github.com/nicklockwood/SwiftFormat/compare/0.62.1...0.63.0) - Added `ifExpressions` rule to convert ternaries to if expressions - Added `preferLazyMap` rule - Added `redundantExtendedLifetime` rule - Added `<!-- no-format -->` HTML comment syntax for disabling formatting of markdown code blocks - Added warning when `--enable` is used for a rule that is already enabled by default - Added `--redundant-optional-binding` option, defaulting to `same-name-only` - Made `--wrapstringinterpolation preserve` the default - Changed default of `--single-line-ternary` to `convert` - Distinguished default, opt-in, and deprecated rules in `--rules` and `--rule-info` output - Updated `organizeDeclarations` to categorize associatedtype declarations as beforeMarks - Updated `hoistAwait` and `hoistTry` to automatically detect and preserve autoclosures within same file as definition - Updated `redundantType` and `propertyTypes` to support more `ExpressibleByXLiteral` types - Updated `redundantReturn` to preserve bare `return` in closures where removal would create single-expression body - Updated `redundantOptionalBinding` to convert `if let x = property` to `if let property` - Updated `urlMacro` rule to support `try #require(URL(string:))` pattern - Updated `redundantBackticks` to preserve backticks on Swift Testing `@Test` functions - Updated `swiftTestingTestCaseNames` to convert backticked names with test prefix or underscores - Updated `genericExtensions` rule to support collection types - Updated `unusedPrivateDeclarations` to preserve properties used in compiler-generated `Equatable` and `Hashable` conformances - Increased stack size to 1MB for Linux release builds - Fixed `redundantClosure` false positive for if statements with no else branch - Fixed spaces around module selectors in generics - Fixed `preferForLoop` incorrectly applying to dollar-prefixed identifiers - Fixed blank line before trailing infix operators - Fixed `swiftTestingTestCaseNames` not adding backticks when required - Fixed `--preserve-acronyms` to work as substring match, not just exact identifier match - Fixed `genericExtensions` rule leaving stray comma with additional where conditions - Fixed `indent` dropping switch case body indentation inside `#if` with `--ifdef no-indent` - Fixed `redundantSwiftUIGroup` removing `Group(subviews:)` - Fixed `redundantReturn` removing redundant returns from switch/if inside a flatMap closure - Fixed `--ifdef no-indent` indentation for method chains and directives - Fixed `environmentEntry` edge cases - Fixed `redundantInternal` stripping required internal inside `#if` in non-internal extensions - Fixed indent of trailing closure in method chain member inside `#if` - Fixed `spaceAroundParens` spurious violations for keyword identifiers after `::` module selector </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/brzzdev/Beans). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC40OS4wIiwidXBkYXRlZEluVmVyIjoiNDQuNDkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
| .github/workflows | ||
| .scripts | ||
| Beans | ||
| Beans.xcodeproj | ||
| Packages | ||
| .gitignore | ||
| .swiftformat | ||
| .swiftlint.yml | ||
| .swiftlint_child.yml | ||
| Brewfile | ||
| CLAUDE.md | ||
| CONTEXT.md | ||
| ExportOptions.plist | ||
| justfile | ||
| LICENSE | ||
| Mintfile | ||
| 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 just.
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