Waybar/include/modules/simpleclock.hpp

21 lines
356 B
C++
Raw Normal View History

#pragma once
#include <fmt/chrono.h>
2022-11-24 11:28:52 +00:00
#include "ALabel.hpp"
#include "util/sleeper_thread.hpp"
namespace waybar::modules {
2022-11-24 11:28:52 +00:00
class Clock : public ALabel {
public:
Clock(const std::string&, const Json::Value&);
2023-03-02 13:57:07 +00:00
virtual ~Clock() = default;
auto update() -> void override;
private:
util::SleeperThread thread_;
};
} // namespace waybar::modules