CLI battery status for linux
- Current battery level
- Current Energy
- Full charge energy
- Time elapsed from the start of the program, without tracking the sleep time of the machine.
- Battery level history
- Download the "batstat" file from the "bin" folder, and run it in your machine
- You may copy this file in the "/usr/bin" folder (or another folder that is in your $PATH) to run it anytime directly from terminal.
- Only 1 battery supported
- Gathers informations only from this folder: "/sys/class/power_supply/". If your machine contains the battery information on a different folder, this program will not work.
- ncurses C++ library
g++ main.cpp -lncurses -pthread -std=c++11 -o batstat