mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
75cf1d70fd
feat(wip): tray feat(wip): tray feat(WIP): gdbus feat(WIP): tray
26 lines
470 B
C++
26 lines
470 B
C++
#pragma once
|
|
|
|
#include <fmt/format.h>
|
|
#include <thread>
|
|
#include "util/json.hpp"
|
|
#include "IModule.hpp"
|
|
#include "modules/sni/snw.hpp"
|
|
#include "modules/sni/snh.hpp"
|
|
|
|
namespace waybar::modules::SNI {
|
|
|
|
class Tray : public IModule {
|
|
public:
|
|
Tray(const Json::Value&);
|
|
auto update() -> void;
|
|
operator Gtk::Widget &();
|
|
private:
|
|
std::thread thread_;
|
|
const Json::Value& config_;
|
|
Gtk::Box box_;
|
|
SNI::Watcher watcher_ ;
|
|
SNI::Host host_;
|
|
};
|
|
|
|
}
|