Implement fhackeditor, which opens or connects to an existing neovim instance

This commit is contained in:
Marko Korhonen 2025-07-25 10:40:09 -05:00
parent 80bf43eaba
commit f4b71c3054
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
9 changed files with 76 additions and 42 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
}