ov-selkies/skills/niri/SKILL.md
Niri Wayland compositor (Smithay-based) built from source with virtual output support. Use when working with niri compositor, headless Wayland, or Smithay-based desktop containers.
npx skillsauth add overthinkos/overthink-plugins niriInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Property | Value |
|----------|-------|
| Dependencies | dbus, rust, build-toolchain |
| Service | niri (supervisord, priority 10) |
| Install files | tasks:, config.kdl, niri-wrapper |
| Built from | QaidVoid/niri feat/virtual branch (Smithay + virtual outputs) |
| Variable | Value |
|----------|-------|
| WAYLAND_DISPLAY | wayland-1 |
| XDG_RUNTIME_DIR | /tmp |
| XDG_CURRENT_DESKTOP | niri |
| EGL_LOG_LEVEL | fatal |
Note: Niri/Smithay creates wayland-1 (not wayland-0 like wlroots). All downstream services must use wayland-1.
Niri is built from the QaidVoid/niri fork (feat/virtual branch) which adds:
NIRI_BACKEND=headless mode — creates virtual outputs without DRM/KMSniri msg create-virtual-output — dynamic virtual output creationBuild process (in tasks:):
git clone --depth 1 --branch feat/virtual https://github.com/QaidVoid/niri.gitcargo build --release/usr/local/bin/niriThe niri-wrapper starts niri with NIRI_BACKEND=headless:
HEADLESS-1 virtual output automatically (1920x1080@60Hz)--unsupported-gpu)cap_sys_nice stripping needed (niri is a Rust binary, no file capabilities)WLR_BACKENDS coordination needed| Aspect | Sway (wlroots) | Niri (Smithay) |
|--------|----------------|----------------|
| Headless mode | WLR_BACKENDS=headless | NIRI_BACKEND=headless |
| Socket name | wayland-0 | wayland-1 |
| GPU workarounds | 4 env vars + --unsupported-gpu | None needed |
| File capabilities | cap_sys_nice must be stripped | No file caps |
| IPC | sway-ipc socket | niri IPC socket |
| Config format | i3-style | KDL |
| Screen capture | wlr-screencopy | ext-image-copy-capture (pending) |
Niri does not implement the wlr-screencopy protocol (it's wlroots-specific). The ext-image-copy-capture protocol support is pending.
Part of niri-desktop composition.
/ov-selkies:sway -- wlroots compositor alternative/ov-foundation:dbus -- D-Bus session bus dependency/ov-selkies:chrome-niri -- Chrome browser on Niri/ov-selkies:niri-apps -- Desktop apps (terminal, file manager)/ov-selkies:niri-desktop -- Full desktop compositionUse when the user asks about:
/ov-build:layer — layer authoring reference (layer.yml schema, task verbs, service declarations)/ov-build:eval — declarative testing (tests: block, ov eval image, ov test)tools
Use when authoring or modifying a charly PLUGIN — a candy with a `plugin:` block that contributes Providers (verbs/kinds/deploy-targets/steps/builders/commands), its own CUE schema, builtin (compiled-in) or external (out-of-tree git repo). Covers the unified Provider model, the per-plugin CUE-schema contract (single source → Go params for dev + schema-over-Describe RPC for runtime), the SDK, and the loader.
tools
The CUE data-validation / configuration CLI (cue), pinned to v0.16.1. Use when working with the cue candy, installing the cue binary into a box or onto a target:local dev host, or running the offline schema-vendoring pipeline that feeds charly's egress validation.
tools
CUE EGRESS validation — validating (and, where it adds value, generating) the config files charly WRITES to a system BEFORE the bytes hit disk. MUST be invoked before working on charly/egress.go, the vendored schemas under candy/plugin-egress/egress-schemas/vendor/, the ValidateEgress / registerVendoredEgressKind path, the offline `task cue:vendor` pipeline, or adding an egress schema for any written artifact (cloud-init, k8s manifests, traefik routes, runtime config, install ledger, systemd/quadlet units, ssh_config, libvirt XML).
tools
Kubernetes cluster-probe declarative check verb — the `kube:` check verb (nodes, pods, ingress, storage class, addon health, apply/delete, and arbitrary resource GETs) served out-of-process by the candy/plugin-kube plugin (vendored client-go; no external kubectl required).