Implement fhackeditor, which opens or connects to an existing neovim instance
This commit is contained in:
parent
80bf43eaba
commit
f4b71c3054
9 changed files with 76 additions and 42 deletions
9
home/.scripts/hibernate-lowbattery.sh
Executable file
9
home/.scripts/hibernate-lowbattery.sh
Executable 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue