#pragma once #include #include #include class HyprlandService { public: HyprlandService(); ~HyprlandService(); // Setup the connection void start(); // Signal that emits (EventName, EventData) // Example: emits ("workspace", "1") sigc::signal on_event; void on_hyprland_event(std::string event, std::string data); private: int m_fd = -1; // File descriptor for the socket std::string m_buffer; // Buffer to handle partial socket reads bool on_socket_read(Glib::IOCondition condition); void parse_message(const std::string &line); std::string get_socket_path(); };