#pragma once #include "modules/meta/timer_module.hpp" #include "settings.hpp" POLYBAR_NS namespace modules { enum class memtype { NONE = 0, TOTAL, USED, FREE, SHARED, BUFFERS, CACHE, AVAILABLE }; enum class memory_state { NORMAL = 0, WARN }; class memory_module : public timer_module { public: explicit memory_module(const bar_settings&, string); bool update(); string get_format() const; bool build(builder* builder, const string& tag) const; static constexpr auto TYPE = "internal/memory"; private: static constexpr const char* TAG_LABEL{"