mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
25 lines
460 B
C++
25 lines
460 B
C++
#pragma once
|
|
|
|
#include <json/json.h>
|
|
#include <gtkmm.h>
|
|
#include <fmt/format.h>
|
|
#include <sys/sysinfo.h>
|
|
#include <thread>
|
|
#include "util/chrono.hpp"
|
|
#include "IModule.hpp"
|
|
|
|
namespace waybar::modules {
|
|
|
|
class Memory : public IModule {
|
|
public:
|
|
Memory(Json::Value config);
|
|
auto update() -> void;
|
|
operator Gtk::Widget &();
|
|
private:
|
|
Gtk::Label _label;
|
|
waybar::util::SleeperThread _thread;
|
|
Json::Value _config;
|
|
};
|
|
|
|
}
|