diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } |