Linux script to verify if you are on battery

Linux script to verify if you are on battery

This is a simple shell script to verify if you are on battery or not. It will show you the battery percentage and the time remaining. It will also show you the battery status (charging, discharging, full, unknown).