highlight urgent workspace
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
class IUpdatable {
|
||||
public:
|
||||
virtual ~IUpdatable() = default;
|
||||
|
||||
@@ -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
12
include/widgets/date.hpp
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user