23 lines
386 B
C++
23 lines
386 B
C++
#pragma once
|
|
|
|
#include <gtkmm.h>
|
|
#include <fmt/format.h>
|
|
#include <sys/sysinfo.h>
|
|
#include <thread>
|
|
#include "util/chrono.hpp"
|
|
#include "IModule.hpp"
|
|
|
|
namespace waybar::modules {
|
|
|
|
class Cpu : public IModule {
|
|
public:
|
|
Cpu();
|
|
auto update() -> void;
|
|
operator Gtk::Widget &();
|
|
private:
|
|
Gtk::Label _label;
|
|
waybar::util::SleeperThread _thread;
|
|
};
|
|
|
|
}
|