Skip to content

rurza/BatFi

Repository files navigation

BatFi

BatFi helps you optimize your macOS battery performance by managing charging levels intelligently, yet giving you full control – charging to 100% only when it's needed.

buy_on_gumroad

Requires macOS Ventura or later and Apple Silicon Mac


Why?

Maintaining a lithium-ion battery at a high state of charge can significantly reduce its lifespan. Although macOS offers a feature that automatically postpones charging the battery to 100%, it lacks user control. This automated approach relies on machine learning to adapt to user habits, leaving users without the ability to determine when and how long the charging should be delayed. Consequently, this solution may not be effective for users with irregular computer usage patterns or for devices frequently connected to power sources, such as monitors like Apple's Studio Display or Pro Display XDR.

On the other hand, BatFi works differently. The app allows you to set a user-chosen limit for charging the battery and maintain it indefinitely. With BatFi, you have the flexibility to decide when to charge the battery to 100% based on your usage needs.

Localization

The app uses String Catalog which makes localization super straightforward.

If you know how to use Git
  1. Install Xcode 15 (Mac App Store)
  2. Fork this repo, the develop branch
  3. There are two .xcstrings files. One related to the app's UI and second one for the App Intents (used for Siri Shortcuts):
  • App UI ./BatFiKit/Sources/L10n/Localizable.xcstrings
  • App Intents ./App/Localizable.xcstrings
  1. Open and edit them with Xcode 15. I highly recommend to use Apple conventions for basic commands, like "Quit" etc. You can find all of them on Apple Localization Terms Glossary
  2. Commit changes and make pull request
If you have no idea what Git is
  1. Install Xcode 15 (Mac App Store)
  2. Download App UI Localizable.xcstrings using the "Download raw file" button in the top right corner
  3. Download App Intents Localizable.xcstrings using the "Download raw file" button in the top right corner
  4. Open and edit downloaded file. It'll open in Xcode. I highly recommend to use Apple conventions for basic commands, like "Quit" etc. You can find all of them on Apple Localization Terms Glossary
  5. Send it to me: [email protected]

About

Battery charging limiter for macOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published