Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 830 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 830 Bytes

Power Print

Prints information about the status of the power supply (battery).

Configuration

It follows the XDG Base Directory convention, so it needs a configuration file named config located in HOME/.config/power-print directory. Alternatively, you can set an environment variable called POWPRINTPATH where the config file is located.

In this file the path to the power supply information has to be put in. Usually this location is in /sys/class/power_supply/BATNAME/uevent, where BATNAME is the name of the battery. For example you can do:

 $ mkdir -p $HOME/.config/power-print
 $ touch $HOME/.config/power-print/config

 $ echo "PATH=/sys/class/power_supply/BATNAME/uevent" > $HOME/.config/power-print/config

Compile

 $ make

Run

 $ make run