Ira Abramov
f42628e609
feat: add percentage range support to maintain command
...
- Add valid_percentage_range() validation function
- Validates NUMBER-NUMBER format
- Ensures lower < upper
- Enforces lower >= 10 and upper <= 100
- No maximum range spread limit
- Update maintain_synchronous to handle ranges
- Parse range into lower_bound and upper_bound
- Enable charging when battery < lower_bound
- Disable charging when battery >= upper_bound
- Fully backward compatible with single values
- Update help message and README
- Add examples: 'battery maintain 70-80'
- Document range syntax alongside single values
- Maintain daemon persists ranges across reboots
- Stores range format (e.g., '70-80') in maintain.percentage
- Recovery logic auto-detects and restores ranges
Tested:
- Single value (80) works as before
- Valid ranges (70-80) work correctly
- Invalid ranges rejected (80-70, 5-15, 95-105, 70-70)
- Status display shows ranges properly (70% - 80%)
CLI-only feature. GUI support deferred to future work.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-21 13:10:08 +03:00
Ando
8eed78a8ca
docs: add calibrate command to readme doc
2025-05-18 10:06:26 +03:00
Mentor Palokaj
48cd71e5f3
Merge pull request #272 from johnmcdowell/readme-install-clarification
...
README installation clarification for homebrew users expecting `brew install` to finish CLI installation
2024-06-28 10:52:05 +02:00
Ryan Burnett
0f163af640
Update README.md
...
Changed "Enabled charging when your battery is under 80% charged" to "Enables charging when your battery is under 80% charged"
2024-05-14 09:37:46 -04:00
John McDowell
d1ac40fdb9
minor wording tweaks
2024-05-04 01:16:43 -07:00
John McDowell
610b1682c7
Address confusion that brew install does not directly complete command line installation
2024-05-02 13:41:13 -07:00
ScienceOwl13
6cb19172c3
Cite quote source
2023-08-24 13:52:07 -04:00
ScienceOwl13
ef52c3317f
Add a README.md FAQ
2023-08-23 12:05:51 -04:00
Jonathan Cousins
912ca120dc
Use https in network checks
...
Move from icanhasip.com to icanhazip.com (Cloudflare)
Use https in network checks using the `-k` flag
2023-07-05 15:15:39 +01:00
Hannes Lau
f777ea72f2
📚 explain the battery visudo command
...
References:
https://github.com/actuallymentor/battery/issues/38#issuecomment-1356260533
2023-03-04 13:28:56 +01:00
Mentor
f04508f8ca
📚 update reference to smc and increment version for beta
2023-02-28 12:41:38 +01:00
Mentor
750023fd6a
Readme update and disable blockmaps
2023-02-24 15:38:11 +01:00
Mentor
8846370e2a
📚 little snitch note
2023-02-19 15:48:23 +01:00
Mentor
c91080dcf0
📚 little snitch note
2023-02-19 15:46:31 +01:00
Mentor
62768e2267
🤔 see if readme pixel works
2023-02-13 15:45:26 +01:00
Mentor Palokaj
5eca63edc2
Merge branch 'main' into patch-1
2023-02-13 09:24:40 +01:00
Davlatjon Shavkatov
7fec178372
docs(readme): minor improvement
...
As there more than M1 devices, they are called **Apple Silicon** CPU family so i propose this change
2023-02-13 05:33:06 +05:00
Mentor
798bef8cd4
🐛 migrate from sudo prompt to applescript for sudo
2023-02-12 12:24:19 +01:00
Mentor Palokaj
b372c8f1aa
Update README.md
...
Change issue link to be the choose screen instead of blank template
2023-02-07 22:56:43 +01:00
Mentor
ffc34cd7f0
📚 Update tray image size
2023-02-07 19:02:07 +01:00
Mentor
8f5daae4ae
📚 document discharge functionality
2023-02-05 15:42:39 +01:00
Mentor
7c0d6dad5a
📚 document adapter controls
2023-02-05 09:02:33 +01:00
Mentor
3dd2cffc2b
📚 document discharge level
2023-02-04 19:20:29 +01:00
Aaron Wallentine
7b3b6a90fa
Clarify/fix language just a bit.
2022-11-23 13:18:44 -07:00
Mentor
4948c6bb66
📚 typo
2022-10-13 17:45:03 -04:00
Mentor
a24fb7c368
🎨 align readme image
2022-10-13 17:42:44 -04:00
Mentor
d357bdd327
🎨 align readme image
2022-10-13 17:33:53 -04:00
Mentor
473e226c08
📚 readme update with details on li-ion batteries and latest help
2022-10-13 17:30:29 -04:00
Mentor
429547accf
✨ hide dock
2022-09-21 14:56:32 +02:00
Mentor
350cb45e60
✨ maintain script no longer requires nohup
2022-09-18 15:34:00 +02:00
Mentor
9541faca5c
✨ Prettier setup
2022-09-06 15:50:16 +02:00
Mentor
6b450896f1
✨ Simplify setup
2022-09-06 15:37:49 +02:00
Mihai Constantin
ffde2fa44a
Merge branch 'main' into uninstall-command
2022-09-05 15:38:43 +02:00
mihaiconstantin
ca6b8356aa
Bump version to v0.0.4
2022-09-05 15:37:34 +02:00
mihaiconstantin
c7aaaa130f
Remove whitespace
2022-09-05 15:36:20 +02:00
Mentor
10d93d9389
📚 update readme
2022-09-05 15:05:32 +02:00
mihaiconstantin
3387ecb296
Update usage example in README
2022-04-13 09:35:54 +02:00
Mentor
8d7b4b8782
✨ better docs
2022-01-28 10:07:23 +01:00
Mentor
781b3f4742
📚 screenshots
2022-01-26 15:39:22 +01:00
Mentor
185de2df99
🐛 fix newline bugs
2022-01-26 15:23:32 +01:00
Mentor
85c1d26589
✨ version 0.0.1
2022-01-26 15:11:37 +01:00
Mentor Palokaj
42053994a1
Initial commit
2022-01-26 14:17:46 +01:00