Expand description
Minimal Hyprland IPC client, used to pin the panel to a workspace and to move it between workspaces.
Hyprland exposes two Unix sockets under $XDG_RUNTIME_DIR/hypr/<signature>/:
.socket.sock (commands, the same protocol hyprctl speaks) and
.socket2.sock (a one-way event stream). tree-space uses the command socket
to read the active workspace, to list workspaces, and to dispatch workspace
when moving itself, and subscribes to the event socket to learn when the
active workspace changes so it can hide or show itself.
None of this exists outside a Hyprland session; Hyprland::connect then
returns None and callers fall back to “always visible”.
Structs§
- Hyprland
- Connection details for a running Hyprland instance.