#!/bin/bashacpireport="$(acpi|grep-vunavailable|head-n1)"state="$(echo$acpireport|awk'{print $3}')"percent="$(echo$acpireport|sed-n's/.* \([0-9]\+\)%.*/\1/p')"if[["${state::-1}"!="Charging"]];thenif((${percent}<=75));thenecho"PLUG IN CHARGER"exit1fifiexit0