2022-01-27 18:01:18 +01:00
2022-01-26 15:39:22 +01:00
2022-01-27 18:01:18 +01:00
2022-01-26 14:17:46 +01:00
2022-01-26 15:39:22 +01:00
2022-01-26 15:23:32 +01:00

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:

Battery not charging

After running battery charging on you will see it change to this:

Battery charging

Installation

One-line installation:

curl https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | sudo bash

This will:

  1. Compile the smc tool from the hholtmann/smcFanControl repository
  2. Install smc to /usr/local/bin
  3. Install battery to /usr/local/bin

Usage

For help, run battery without parameters.

Description
No description provided
Readme MIT 4.3 MiB
Languages
Shell 59.1%
JavaScript 40.9%