Skip to content

Commit

Permalink
Display correct MagSafe LED indicator color (version 1.3)
Browse files Browse the repository at this point in the history
Closes #10
  • Loading branch information
godly-devotion committed Oct 26, 2020
1 parent 762ed89 commit e0969af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Set battery charge limit for MacBooks.

## Description

This app modifies a parameter called `BCLM` (presumably "Battery Charge Level Max") in the SMC which limits the charge of the battery to a set value.
This app modifies a parameter called `BCLM` (presumably "Battery Charge Level Max") in the SMC which limits the charge of the battery to a set value. It also modifies a parameter called `BFCL` ("Battery Final Charge Level") which controls the MagSafe LED indicator light to display the correct status.

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).

Expand Down
6 changes: 3 additions & 3 deletions src/Charge Limiter.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.21</string>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>LSMinimumSystemVersionByArchitecture</key>
Expand Down Expand Up @@ -56,7 +56,7 @@
<key>bundleDividerCollapsed</key>
<false/>
<key>bundlePositionOfDivider</key>
<real>1031</real>
<real>1025</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
Expand All @@ -66,7 +66,7 @@
<key>positionOfDivider</key>
<real>468</real>
<key>savedFrame</key>
<string>419 285 1280 693 0 0 1920 1177 </string>
<string>349 286 1274 693 0 0 1920 1177 </string>
<key>selectedTab</key>
<string>log</string>
</dict>
Expand Down
Binary file modified src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt
Binary file not shown.

0 comments on commit e0969af

Please sign in to comment.