Waybar/include/modules/cpu.hpp

21 lines
317 B
C++
Raw Normal View History

2018-08-08 23:54:33 +00:00
#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;
};
}