Removed some old/unneeded shell scripts and formatted the rest

This commit is contained in:
Marko Korhonen 2022-09-16 20:08:03 +03:00
parent 86ba9538de
commit 7e48c8f75a
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
15 changed files with 51 additions and 369 deletions

View file

@ -1,9 +1,9 @@
#!/bin/sh
acpi -b | awk -F'[,:%]' '{print $2, $3}' | {
read -r status capacity
read -r status capacity
if [ "$status" = Discharging -a "$capacity" -lt 5 ]; then
logger "Critical battery threshold"
systemctl hibernate
fi
if [ "$status" = Discharging -a "$capacity" -lt 5 ]; then
logger "Critical battery threshold"
systemctl hibernate
fi
}