macos-battery-alert-to-main.../README.md

26 lines
490 B
Markdown
Raw Normal View History

2021-01-03 10:47:16 +01:00
MacOS alert if the battery exceeds certain percentage charge limits to maintain health.
2021-01-03 10:51:19 +01:00
2021-01-03 10:51:56 +01:00
**Emacs Lisp 100.0%**
2021-01-03 10:51:19 +01:00
# 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
```