home assistant widget

This commit is contained in:
2025-12-10 23:47:28 +01:00
parent 0b3a6c4696
commit 6582fb16e8
6 changed files with 86 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
#include "services/tray.hpp"
#include "widgets/clock.hpp"
#include "widgets/tray.hpp"
#include "widgets/webWidget.hpp"
#include "widgets/workspaceIndicator.hpp"
class Bar : public Gtk::Window {
@@ -22,6 +23,8 @@ class Bar : public Gtk::Window {
private:
Clock clock;
WebWidget homeAssistant {"HA", "Home Assistant",
"https://home.rivercry.com"};
TrayService &trayService;
HyprlandService &hyprlandService;
int monitorId;

View File

@@ -0,0 +1,14 @@
#pragma once
#include <gtkmm/button.h>
#include <gtkmm/window.h>
class WebWidget : public Gtk::Button {
public:
WebWidget(std::string label, std::string title, std::string url);
~WebWidget() override;
private:
void on_toggle_window();
Gtk::Window* web_window = nullptr;
};