Adding batt check and fixed MC to use full path

This commit is contained in:
Henry Corse
2022-12-25 15:05:36 -05:00
parent 169dd47aeb
commit 2d04a5bbf6
4 changed files with 18 additions and 1 deletions

2
batt_check/batt_check Executable file
View 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