aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/conf b/conf
index cff836d..e538b60 100644
--- a/conf
+++ b/conf
@@ -1,4 +1,10 @@
battery=/sys/class/power_supply/BAT0/uevent
-interval() { ./battcheck min_time=1200 min_pct=16 "$battery"; }
+interval() {
+ if ./battcheck min_time=1200 min_pct=16 "$battery"; then
+ sleep 300
+ else
+ sleep 30
+ fi
+}
check() { ./battcheck min_time=600 min_pct=8 "$battery"; }
failed() { zzz -H; }