battbar2.0 260 B

12345678910111213
  1. bat=$(acpi battery | awk '{print $4}' | sed "s/%//")
  2. if [ $bat -gt 0 ] && [ $bat -lt 25 ]; then
  3. echo 'yeah'
  4. elif [ $bat -gt 25 ] && [ $bat -lt 50 ]; then
  5. elif [ $bat -gt 50 ] && [ $bat -lt 75 ]; then
  6. elif [ $bat -gt 75 ] && [ $bat -lt 100 ]; then
  7. fi