#pragma once #include "modules/meta/timer_module.hpp" POLYBAR_NS namespace modules { class counter_module : public timer_module { public: explicit counter_module(const bar_settings&, string, const config&); bool update(); bool build(builder* builder, const string& tag) const; static constexpr auto TYPE = "internal/counter"; private: static constexpr auto TAG_COUNTER = ""; int m_counter{0}; }; } // namespace modules POLYBAR_NS_END