23 lines
447 B
C++
23 lines
447 B
C++
|
#pragma once
|
||
|
|
||
|
#include <json/json.h>
|
||
|
#include <fmt/format.h>
|
||
|
#include "util/chrono.hpp"
|
||
|
#include "IModule.hpp"
|
||
|
|
||
|
namespace waybar::modules {
|
||
|
|
||
|
class Custom : public IModule {
|
||
|
public:
|
||
|
Custom(std::string name, Json::Value config);
|
||
|
auto update() -> void;
|
||
|
operator Gtk::Widget &();
|
||
|
private:
|
||
|
Gtk::Label _label;
|
||
|
waybar::util::SleeperThread _thread;
|
||
|
const std::string _name;
|
||
|
Json::Value _config;
|
||
|
};
|
||
|
|
||
|
}
|