summaryrefslogtreecommitdiff
path: root/checkbattery
diff options
context:
space:
mode:
Diffstat (limited to 'checkbattery')
-rwxr-xr-xcheckbattery2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkbattery b/checkbattery
index 5b4cfe6..35e2a05 100755
--- a/checkbattery
+++ b/checkbattery
@@ -5,7 +5,7 @@ export DISPLAY=:0
BATT=`acpi -b | grep -P -o '[0-9]+(?=%)'`
TIME=`acpi -b | grep -P -o '[0-9]{2}:[0-9]{2}:[0-9]{2}'`
-if (( $BATT < 10 ))
+if [[ $BATT < 10 ]]
then
notify-send -u critical "LOW BATTERY!" "\
Battery Charge: ${BATT}%