https://blog.voina.fr/bash-one-liners-detailed-information-about-your-battery-and-power-under-linux-command-line/
Bash one liners: Detailed information about your battery and power under Linux command line