From 357ca75bc85f528f63817e77743b14dfdeec6144 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 3 Jan 2021 10:51:19 +0100 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e4661f..c51bbe2 100644 --- a/README.md +++ b/README.md @@ -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 +```