Added in 2.3
$battery
Returns $true if running on battery, otherwise returns $false.
See also $batteryp.