feat(config): format modules

This commit is contained in:
Alexis
2018-08-09 13:30:11 +02:00
parent 45832fcbe3
commit dc4e4860bd
10 changed files with 45 additions and 20 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include <json/json.h>
#include <filesystem>
#include <fstream>
#include <gtkmm.h>
@ -14,7 +15,7 @@ namespace waybar::modules {
class Battery : public IModule {
public:
Battery();
Battery(Json::Value config);
auto update() -> void;
operator Gtk::Widget&();
private:
@ -22,6 +23,7 @@ namespace waybar::modules {
std::vector<fs::path> _batteries;
util::SleeperThread _thread;
Gtk::Label _label;
Json::Value _config;
};
}