mirror of
https://github.com/outbackdingo/hyprcosmic-comp.git
synced 2026-08-25 07:10:25 +00:00
1de9027b07777d47ccd67243f7d2c3aa2903ad5a
Binds .socket (request/response) and .socket2 (event stream) under
$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE, so waybar's
hyprland/workspaces and hyprland/window modules work unmodified. Both
listeners register on the existing calloop loop following session.rs's
run_socket pattern; nothing spawns a thread touching compositor state.
Wiring the agent documented but did not apply:
- lib.rs calls hypr_ipc::init before announcing readiness, so the signature
is exported in time for get_env to pass it to children. Failure is
non-fatal; only waybar's hyprland/* modules go dark.
- Common gains an Option<HyprIpcHandle>, None until the sockets bind.
- session.rs get_env forwards HYPRLAND_INSTANCE_SIGNATURE alongside
WAYLAND_DISPLAY, which is how waybar finds the socket.
cargo check passes clean; 13 hypr_ipc unit tests pass, covering the JSON
field names, event-line formats and command parsing. Full lib suite: 14
passed, 0 failed.
NOT runtime-verified — no Wayland session available here, so nothing confirms
waybar actually consumes these sockets.
Event notifications are inert until notify_* is called from focus-change
sites; request/response works without that.
Description
Fork of pop-os/cosmic-comp for HyprCosmic: Hyprland-idiom config and a session that installs beside stock COSMIC
715 KiB
Languages
Rust
97.1%
Fluent
2.1%
GLSL
0.5%
Makefile
0.1%
Nix
0.1%