add tray icons

This commit is contained in:
2025-12-10 00:25:49 +01:00
parent d53dfa27f1
commit 7bd4c72763
9 changed files with 1268 additions and 9 deletions

View File

@@ -26,8 +26,7 @@ App::App() {
continue;
}
auto bar = new Bar(monitor->gobj(), this->hyprlandService, hyprlandMonitor->id);
this->hyprlandService.printMonitor(*hyprlandMonitor); // Debugging output
auto bar = new Bar(monitor->gobj(), this->hyprlandService, this->trayService, hyprlandMonitor->id);
bar->set_application(app);
bar->show();
@@ -41,6 +40,8 @@ App::App() {
delete bar;
}
bars.clear();
this->trayService.stop();
});
}
@@ -49,6 +50,7 @@ void App::setupServices() {
this->hyprlandService, &HyprlandService::on_hyprland_event));
this->hyprlandService.start();
this->trayService.start();
}
int App::run() {