Skip to content

veiland 0.1.0

Choose a tag to compare

@sylflo sylflo released this 14 Jul 12:37
· 104 commits to master since this release

First release. Veiland is a GPU lock screen for Wayland that you compose
from layers, each one a separate program.

Added

Core locker

  • ext-session-lock-v1 lock surface; works on any compositor implementing
    the protocol (tested on Hyprland and Sway). The compositor enforces the
    lock, so the session fails closed even if veiland crashes.
  • PAM authentication against the veiland service (auth + account
    phases), run on a worker thread so a wrong password never freezes the
    animation.
  • Configurable password indicator, always composited on top of all plugin
    output.
  • Multi-monitor support with per-plugin output targeting, and HiDPI-aware
    text rendering via veiland-text (cosmic-text backend).
  • Reliability across suspend/resume, DPMS off/on, and monitor
    unplug/replug — including unplugging every monitor at once and
    hot-plugging a display in while locked.
  • Password-buffer hygiene: mlock'd, zeroed after the PAM call, and the
    core sets prctl(PR_SET_DUMPABLE, 0) at startup to deny same-UID
    ptrace/proc-mem reads and core dumps (VEILAND_ALLOW_DUMP=1 opts out).

Plugin system and protocol

  • Process-isolated plugins: every layer is a separate program, spawned over
    a socketpair and speaking a versioned tagged-message protocol on an
    AF_UNIX SOCK_SEQPACKET socket. Plugins never receive keyboard input and
    have no unlock path — the API surface is absent by construction.
  • Zero-copy GPU rendering: plugins allocate buffers via GBM, render with
    their own EGL/OpenGL context, and pass DMA-BUF file descriptors to the
    core via SCM_RIGHTS; the core imports them as EGLImage textures. No
    pixel data crosses CPU memory.
  • Explicit sync: frames carry a sync-fence fd where the driver supports it,
    with a glFinish fallback negotiated automatically.
  • Scene composition: plugins layer by z_index, can target specific
    monitors, and are configured through [[plugin]] tables in
    ~/.config/veiland/config.toml.
  • A crashed or misbehaving plugin costs its own layer, never the locker:
    malformed messages close the plugin's socket and a fallback is drawn for
    its region.
  • veiland-plugin, the Rust plugin SDK: imperative primitives
    (Connection, FramePacer, DmaBuffer, GbmEgl) the plugin author
    drives from their own main(). The wire format is documented and not
    tied to Rust.
  • veiland-protocol, the wire-format implementation, with a cargo-fuzz
    harness for the codec.

Bundled plugins (14)

  • wallpaper — image wallpaper.
  • clock — time display.
  • label — static text.
  • vignette — darkened-edges overlay.
  • particles, sakura, snow, rain, embers, fireflies — the
    particle family: drifting particles, falling petals, dendritic ice
    crystals, slanted rain streaks, rising sparks, wandering glow.
  • gradient, parallax, blobs — ambient backgrounds: flowing color
    ramp, layered bokeh depth, lava-lamp metaballs.
  • raymarcher — raymarched gyroid tunnel drift.

Packaging

  • NixOS flake: package, dev shell, and checks, plus a NixOS module
    (services.veiland.enable = true) that installs the binary and reference
    plugins and registers the PAM service.
  • Arch Linux PKGBUILD (AUR).
  • Debian package for Debian testing (trixie), with the PAM service bundled.
  • RPM spec for Fedora/RHEL, with the PAM service bundled; .deb and .rpm
    artifacts are built by CI and attached to releases.
  • Reference PAM service files and an annotated example config under
    packaging/.

Documentation

  • docs/architecture.md — full write-up: trust boundaries, module map,
    security model.
  • docs/protocol.md — the wire-format specification (the spec is
    authoritative over the implementation).
  • docs/plugin-api.md — plugin SDK reference.
  • docs/plugin-authoring-claude.md — drop-in context file for writing
    plugins with an AI coding assistant.
  • docs/config.md — configuration reference.
  • Ready-made example scenes in docs/examples/, matching the README
    gallery (shinkai composes ten plugin instances across two monitors).
  • SECURITY.md and CONTRIBUTING.md.