Skip to content

Commit

Permalink
README.md: add info about BCLM
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion committed May 30, 2020
1 parent 01ece52 commit f2de37e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Set charge limit for MacBooks.

## Description

This utility is written in Javascript Application Scripting (or JXA) using Apple's Script Editor.
This app modifies a parameter called `BCLM` (presumably "Battery Charging Level Max") in the SMC which limits the charge of the battery to a set value.

The source code can be viewed by opening `src/charge-limiter.app` in Script Editor.
The source code can be viewed by opening `src/charge-limiter.app` in Apple's Script Editor. It is written in Javascript Application Scripting (or JXA).

The companion `smcutil` binary (located under `src/charge-limiter.app/Contents/Resources`) was copied from [this repository](https://github.com/sicreative/BatteryStatusShow/blob/master/BatteryStatusShow/smcutil/Products/usr/local/bin/smcutil). The source code for `smcutil` is also available there.

Expand Down
2 changes: 1 addition & 1 deletion src/charge-limiter.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
<string>10.12</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
Expand Down
Binary file modified src/charge-limiter.app/Contents/Resources/Scripts/main.scpt
Binary file not shown.

0 comments on commit f2de37e

Please sign in to comment.