Working on neomutt setup and some other small fixes

This commit is contained in:
Marko Korhonen 2020-11-25 10:06:19 +02:00
parent ef6050fed3
commit a38b58d91a
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
36 changed files with 152 additions and 155 deletions

View file

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