Waybar/include/modules/clock.hpp

23 lines
391 B
C++
Raw Normal View History

2018-08-08 21:54:58 +00:00
#pragma once
2018-08-09 11:30:11 +00:00
#include <json/json.h>
2018-08-08 21:54:58 +00:00
#include <fmt/format.h>
2018-08-15 18:53:27 +00:00
#include "fmt/time.h"
2018-08-08 21:54:58 +00:00
#include "util/chrono.hpp"
2018-08-09 10:05:48 +00:00
#include "IModule.hpp"
2018-08-08 21:54:58 +00:00
namespace waybar::modules {
2018-08-16 12:29:41 +00:00
class Clock : public IModule {
public:
Clock(Json::Value);
auto update() -> void;
operator Gtk::Widget &();
private:
Gtk::Label label_;
waybar::util::SleeperThread thread_;
Json::Value config_;
};
2018-08-08 21:54:58 +00:00
}