mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02: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