waybar/include/modules/memory.hpp
2018-08-16 14:29:41 +02:00

23 lines
396 B
C++

#pragma once
#include <json/json.h>
#include <fmt/format.h>
#include <sys/sysinfo.h>
#include "util/chrono.hpp"
#include "IModule.hpp"
namespace waybar::modules {
class Memory : public IModule {
public:
Memory(Json::Value);
auto update() -> void;
operator Gtk::Widget &();
private:
Gtk::Label label_;
waybar::util::SleeperThread thread_;
Json::Value config_;
};
}