#!/usr/bin/env dash bat=$(cat /sys/class/power_supply/BAT0/capacity) echo ": $bat" echo "B: $bat" if [ $bat -lt 10 ]; then echo "#FF0000" fi