highlight urgent workspace

This commit is contained in:
2025-12-11 00:41:47 +01:00
parent 0a94acb8f4
commit e1eeb370da
9 changed files with 139 additions and 19 deletions

View File

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

View File

@@ -1,3 +1,5 @@
#pragma once
class IUpdatable {
public:
virtual ~IUpdatable() = default;

View File

@@ -61,6 +61,7 @@ class HyprlandService {
std::string get_socket_path();
void refresh_monitors();
void refresh_workspaces();
void handle_urgent_window(std::string windowAddress);
};
inline void HyprlandService::printMonitor(const Monitor &mon) const {

12
include/widgets/date.hpp Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <gtk4-layer-shell/gtk4-layer-shell.h>
#include <gtkmm.h>
#include <gtkmm/label.h>
#include "interface/updateable.ipp"
class Date : public Gtk::Label, public IUpdatable {
public:
bool onUpdate();
};