aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-15 11:01:56 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-15 11:01:56 +0100
commitb071eea75c58241f6b46c8148da4db1ba312ec1c (patch)
tree06593ff57c9494de67bf6925128e2b52e2bf3c85
parentNow takes the correct options (diff)
downloadlowbat-gnu-b071eea75c58241f6b46c8148da4db1ba312ec1c.tar.gz
lowbat-gnu-b071eea75c58241f6b46c8148da4db1ba312ec1c.tar.bz2
lowbat-gnu-b071eea75c58241f6b46c8148da4db1ba312ec1c.tar.xz
lowbat-gnu-b071eea75c58241f6b46c8148da4db1ba312ec1c.tar.zst
lowbat-gnu-b071eea75c58241f6b46c8148da4db1ba312ec1c.zip
Back to 15%
-rwxr-xr-xbin/lowbat2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/lowbat b/bin/lowbat
index a8ae16c..8297032 100755
--- a/bin/lowbat
+++ b/bin/lowbat
@@ -18,7 +18,7 @@ notify() {
while [ 1 ]; do
acstat=$(acpi | awk '{print $3}' | rev | cut -c 2- | rev)
batlvl=$(acpi | awk '{print $4}' | rev | cut -c 3- | rev)
- if [ $batlvl -lt 115 ]; then
+ if [ $batlvl -lt 15 ]; then
while [ "$acstat" = "Discharging" ]; do
$(notify)
sleep 20