mirror of
https://github.com/actuallymentor/battery.git
synced 2026-09-17 08:51:40 +01:00
98f45fde8f72ee10fb240a76e487268fb01d37cd
Battery charging manager
CLI for managing the battery charging status for M1 Macs. Can be used to enable/disable the Macbook from charging the battery when plugged into power.
The idea is to make it possible to keep a chronically plugged in Macbook at for example 80% battery, since that will prolong the longevity of the battery.
After running battery charging off you can verify the change visually by looking at the battery icon:
After running battery charging on you will see it change to this:
Installation
One-line installation:
curl https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | sudo bash
This will:
- Compile the
smctool from the hholtmann/smcFanControl repository - Install
smcto/usr/local/bin - Install
batteryto/usr/local/bin
Usage
For help, run battery without parameters.
Languages
Shell
59.1%
JavaScript
40.9%

