add unit config option to memory module

This commit is contained in:
Duke B
2026-04-05 19:01:36 -04:00
parent 1e965ccce0
commit fc11789a4f
3 changed files with 62 additions and 26 deletions
+4
View File
@@ -19,9 +19,13 @@ class Memory : public ALabel {
private:
void parseMeminfo();
static float calc_divisor(const std::string& divisor);
std::unordered_map<std::string, unsigned long> meminfo_;
util::SleeperThread thread_;
std::string unit_;
};
} // namespace waybar::modules