Skip to content

Commit

Permalink
Replace smcutil with bclm for better compatibility
Browse files Browse the repository at this point in the history
Fixes #30. Closes #9.
  • Loading branch information
godly-devotion committed Nov 3, 2021
1 parent 45c9ade commit 3cd5150
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This app modifies a parameter called `BCLM` (presumably "Battery Charge Level Ma

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). The source code for `smcutil` is also available there.
The companion `bclm` binary (located under `src/Charge Limiter.app/Contents/Resources`) was copied from [this repository](https://github.com/zackelia/bclm). The source code for `bclm` is also available there.

## Releases

Expand All @@ -18,7 +18,7 @@ Download the latest version from the [releases](https://github.com/godly-devotio

When trying to open the app for the first time, Gatekeeper will prevent you from doing so because the app is not code signed. In order to bypass this warning, you need to right-click on the app and select "Open". You will have to do this twice in order to get the option to open the app.

If you wish to fully charge the battery again, set the charge limit to "100". The app itself does not install anything so if you do not need it anymore you can safely move it to the trash.
After setting a charge limit, the app will silently run and reapply the desired charge level again if you restart your Mac. If you wish to fully charge the battery again, set the charge limit to "100". This will also remove the charge limit persistency on boot. Afterwards, if you do not need the app anymore you can safely move it to the trash.

## Updates

Expand Down
4 changes: 2 additions & 2 deletions src/Charge Limiter.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<key>bundleDividerCollapsed</key>
<false/>
<key>bundlePositionOfDivider</key>
<real>1025</real>
<real>1010</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
Expand All @@ -66,7 +66,7 @@
<key>positionOfDivider</key>
<real>468</real>
<key>savedFrame</key>
<string>349 286 1274 693 0 0 1920 1177 </string>
<string>349 285 1274 693 0 0 1920 1175 </string>
<key>selectedTab</key>
<string>log</string>
</dict>
Expand Down
Binary file modified src/Charge Limiter.app/Contents/MacOS/applet
Binary file not shown.
Binary file modified src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt
Binary file not shown.
Binary file added src/Charge Limiter.app/Contents/Resources/bclm
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600
{\fonttbl}
{\rtf1\ansi\ansicpg1252\cocoartf2580
\cocoatextscaling0\cocoaplatform0{\fonttbl}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
}
Binary file removed src/Charge Limiter.app/Contents/Resources/smcutil
Binary file not shown.

0 comments on commit 3cd5150

Please sign in to comment.