nuguland: make bar/osd/toasts per-output on multi-monitor
e752ddef4fa27ff72e196079eab4da43af0d4e99
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 919a52b4dcb1
Every surface already spawns per screen (Variants over Quickshell.screens), but content was global: each bar's workspace strip showed the union of all outputs' workspaces, and the OSD/toasts rendered on every monitor at once. - Niri.workspacesForOutput(name): a bar's own monitor's visible workspaces, sorted by niri's per-output idx so each bar reads 1..N left-to-right (also fixes the scrambled order seen under single-output fallback). Empty name falls back to all. - Niri.focusedOutput: the output name of the globally-focused workspace. - OSD + toast surfaces gate visibility on modelData.name === focusedOutput (fall back to all screens if niri hasn't reported a focused output yet), so each shows once on the active monitor instead of duplicating per screen. Matching is fully dynamic via screen.name vs workspace.output — no hardcoded connector names. Verified on the live single-output session: pills render idx-sorted, OSD shows once, clean journal. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>