Function penrose_ui::bar::widgets::sys::helpers::battery_text
source · pub fn battery_text(bat: &str) -> Option<String>
Expand description
Fetch the requested battery’s charge as a percentage of its total along with an indicator of whether it is charging or discharging.
This will return None
if it is unable to read or parse the required system files for the
requested battery.