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