waybar/include/modules/simpleclock.hpp
Viktar Lukashonak 61a6c00c02
Happy clang
2023-03-02 16:57:32 +03:00

21 lines
356 B
C++

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