feat: cpu module

This commit is contained in:
Alexis
2018-08-09 01:54:33 +02:00
parent 17fc77cb5e
commit d5bfc754c6
5 changed files with 58 additions and 11 deletions

20
include/modules/cpu.hpp Normal file
View 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 Cpu {
public:
Cpu();
operator Gtk::Widget &();
private:
Gtk::Label _label;
waybar::util::SleeperThread _thread;
};
}