2020-10-10 12:09:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <fmt/chrono.h>
|
2022-07-13 05:20:49 +00:00
|
|
|
|
2020-10-10 12:09:55 +00:00
|
|
|
#include "ALabel.hpp"
|
|
|
|
#include "util/sleeper_thread.hpp"
|
|
|
|
|
|
|
|
namespace waybar::modules {
|
|
|
|
|
|
|
|
class Clock : public ALabel {
|
|
|
|
public:
|
|
|
|
Clock(const std::string&, const Json::Value&);
|
|
|
|
~Clock() = default;
|
|
|
|
auto update() -> void;
|
|
|
|
|
|
|
|
private:
|
|
|
|
util::SleeperThread thread_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace waybar::modules
|