battery.sh 95 B

123456
  1. #!/usr/bin/env bash
  2. percent=$(acpi | awk 'NR==2{print substr($4,1,3)}')
  3. echo "BAT: $percent"