Stuff
public shellscript v1 · immutable#!/bin/bashL=10C=3while true ; do sleep 1 A=$(acpi -b | awk '{print $3}' | sed 's/,//') B=$(acpi -b | awk '{print $4}' | sed 's/%,//') if [ "$A" = "Discharging" ] ; then if [ $B -eq $L ] ; then notify-send -i battery -u normal "Warning!" "Battery charge is low! ($L%)" sleep 3m elif [ $B -eq $C ] ; then notify-send -i battery -u critical "Warning!" "Battery charge is critical! ($C%)" sleep 3m fi fidone