Getting information about power supply / battery

Manually getting information Information about battery/power supply can be found and read manually by examining files in the /sys/class/power_supply/XYZ directory, which for example looks like this: $ ls /sys/class/power_supply/BAT0/ | column -t alarm capacity capacity_level charge_behaviour charge_control_end_threshold charge_…