Adding batt check and fixed MC to use full path
This commit is contained in:
2
batt_check/batt_check
Executable file
2
batt_check/batt_check
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
BATTINFO=$(acpi -b | grep Discharging || echo 100\%) && [[ $( echo "$BATTINFO" | grep -Eo '[[:digit:]]+%' | tr -d "\%") -lt 80 ]] && systemctl poweroff
|
||||
Reference in New Issue
Block a user