waybar/include/modules/custom.hpp

23 lines
420 B
C++
Raw Normal View History

#pragma once
#include <json/json.h>
#include <fmt/format.h>
#include "util/chrono.hpp"
#include "IModule.hpp"
namespace waybar::modules {
2018-08-16 14:29:41 +02:00
class Custom : public IModule {
public:
Custom(const std::string&, Json::Value);
auto update() -> void;
operator Gtk::Widget &();
private:
const std::string name_;
Gtk::Label label_;
waybar::util::SleeperThread thread_;
Json::Value config_;
};
}