feat: battery states && format-full/charging

This commit is contained in:
Alexis
2018-11-02 11:23:29 +01:00
parent 9d4048983d
commit 9b201c77d7
3 changed files with 71 additions and 25 deletions

View File

@ -22,6 +22,8 @@ class Battery : public ALabel {
static inline const fs::path data_dir_ = "/sys/class/power_supply/";
void worker();
std::tuple<uint16_t, std::string> getInfos();
std::string getState(uint16_t, bool);
util::SleeperThread thread_;
util::SleeperThread threadTimer_;