mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: memory module
This commit is contained in:
20
include/modules/memory.hpp
Normal file
20
include/modules/memory.hpp
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <gtkmm.h>
|
||||
#include <fmt/format.h>
|
||||
#include <sys/sysinfo.h>
|
||||
#include <thread>
|
||||
#include "util/chrono.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
class Memory {
|
||||
public:
|
||||
Memory();
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
Gtk::Label _label;
|
||||
waybar::util::SleeperThread _thread;
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user