waybar/include/modules/clock.hpp
2019-01-13 22:22:22 +01:00

20 lines
347 B
C++

#pragma once
#include <fmt/format.h>
#include "fmt/time.h"
#include "util/sleeper_thread.hpp"
#include "ALabel.hpp"
namespace waybar::modules {
class Clock : public ALabel {
public:
Clock(const std::string&, const Json::Value&);
~Clock() = default;
auto update() -> void;
private:
waybar::util::SleeperThread thread_;
};
}