Update README.md

This commit is contained in:
Andros Fenollosa 2021-01-03 10:51:19 +01:00 committed by GitHub
parent f84876aabb
commit 357ca75bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,25 @@
# macos-battery-alert-to-maintain-health.el
MacOS alert if the battery exceeds certain percentage charge limits to maintain health.
100% Elisp!
# Run
``` shell
emacs --no-init-file --no-site-file --script macos-battery-alert-to-maintain-health.el
```
# Cron
Automates to check every 10 minutes.
Open `crontab`.
``` shell
crontab -e
```
Add the following line. Be sure to change the path of the script.
``` shell
*/6 * * * * emacs --no-init-file --no-site-file --script macos-battery-alert-to-maintain-health.el
```