#!/bin/bash BAT=$(acpi -b | grep "Battery $1" | rg "(\d?\d\d)%" -or '$1') echo BAT$(($1 + 1)): $BAT exit 0