I have a script that can put the computer to sleep at a certain CPU temperature;#!/bin/bash while true; do        val=$(sensors | awk '/temp1/ {print $2}')        max=$(echo +82.0)        if [[ $val > $max ]]                then                        systemctl suspend -i        fi    sleep 5        clear        sensors done exit 0Can it be adjusted/edited to put te computer to sleep at a certain battery level?
Change script to act for battery level instead of temperature
scripting;battery