/batstat

CLI battery status for linux

Primary LanguageC++

batstat

CLI battery status for linux

Features

  • 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

Screenshot from application

Install

  • 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.

Limitations

  • 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.

Dependencies

  • ncurses C++ library

Compilation command

g++ main.cpp -lncurses -pthread -std=c++11 -o batstat