commit 28b6558be91a6a68ccf7ec203aefa9dc7716f99b
parent 663b9c4ea04195f942b77ec0a267c676a4e049d5
Author: clamiax <smoppy@gmail.com>
Date: Sun, 10 Nov 2013 18:20:28 +0100
Fix a bug and change few values.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/acpi b/acpi
@@ -1,8 +1,8 @@
#!/bin/bash
STATE=mem
-BATTCRITIC=2
-BATTWARNING=5
+BATTCRITIC=3
+BATTWARNING=8
ACDEVFILE=/sys/devices/pci0000:00/firmware_node/ACPI0003:00/power_supply/AC0/online
acplugged() {
@@ -30,8 +30,8 @@ main() {
[ $(acplugged) -eq 1 ] && exit
t=$(getbattery)
- [ $t -lt $BATTCRITIC ] && suspend
- [ $t -lt $BATTWARNING ] && warning $t
+ [ $t -le $BATTCRITIC ] && suspend
+ [ $t -le $BATTWARNING ] && warning $t
}
main "$@"