Skip to content
12errhPublic

About

Low-resource live wallpaper engine for Wayland — Rust daemon + Tauri GUI. Hyprland and Caelestia first; generic layer-shell as the floor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OWLD — Open Wallpaper Daemon

A low-resource live-wallpaper engine and manager for Wayland Linux, targeting Hyprland and Caelestia Shell first. GPL-3.0-or-later.

  • owld — the daemon that renders still images, animated images, video and WGSL shader packs on layer-shell background surfaces, with GPU transitions, per-output clocks, an automatic resource governor and a timed playlist.
  • OWLD GUI — Tauri v2 + React desktop app (library, outputs, playback, shader gallery, governor card, playlist, tray menu).
  • owlctl — thin CLI for scripts and keybinds.

Status: release candidate — all product phases implemented; remaining work is release evidence, not features. Static/animated/video/shader content renders on Hyprland layer-shell, with GPU transitions, an indexed library and cached thumbnails, hotplug, session restore, Caelestia routing, typed Hyprland events, playback IPC, shader hot reload and parameter persistence, the governor rule table (fullscreen, battery, DPMS/idle, eco preset, manual override), playlists, systemd packaging, the owld-bench harness and a published Reference-Profile benchmark.

Honest limits: presentation is still SHM+wgpu readback, so 30 fps is the practical playback ceiling and shader wallpapers cost ~22 % of one core at 1366×768 (revising the original ≤1 % shader target). 4K animated content peaks at ~306 MiB, cache cap plus the 4K working set. Hardware recordings for fullscreen/battery governor rules, competitor benchmark adapters and a fresh-VM install pass remain open; the documented fuzz smoke is clean but the 24 h soak has not been run.

Implemented and remaining

Implemented and exercised: static/animated/video decoding, bounded frame caching, per-output playback clocks, compositor frame-callback presentation, GPU transitions, library indexing and thumbnails, hotplug reconciliation, session restore, Hyprland events, Caelestia shell-routed and daemon-drawn modes, IPC/CLI/Tauri/React playback controls, decode statistics, and live compositor smoke probes.

Still open before 1.0:

  • P4: dma-buf zero-copy import (deferred; SHM+readback is the supported path). The ten-minute soak passes (peak 104.4 MiB, 0 % growth); 4K animated is measured, not waived.
  • P6: recorded fullscreen/battery runs on real hardware, UPower replay and competitor benchmark adapters (CPU-busy sampler, eco toggle and UPower push are done).
  • P7: fresh-VM/systemd-session install pass on Zorin/Ubuntu and Arch, and a COPR/package matrix. The package installs cleanly in a stock Ubuntu 24.04 container; the 15–20k-run fuzz smoke across all four targets is clean and both lockfiles audit clean. The 24 h fuzz soak was deliberately not run.
  • Post-1.0: plugin ABI (F-34), reactive uniforms (F-36), UI redesign wave (F-40), Shadertoy GLSL→WGSL helper, per-entry playlist durations.

Repository layout

crates/owld-core    config model + validation, content model   (pure logic, heavily tested)
crates/owld-ipc     IPC protocol v1: framing, server, client
crates/owld-media   still/animated/video decoding, frame cache, runtime probes
crates/owld-render  wgpu rendering, transitions, and layer-shell presentation
crates/owld        the daemon binary
crates/owlctl      control CLI
crates/owld-shell-* shell backends: hyprland, caelestia, generic-layer-shell
app/               Tauri v2 + React GUI (app/src-tauri is built by its own CI job)
reference/         pinned clones of studied repos (gitignored, never built)

Build

# Rust workspace
cargo build --workspace
cargo test --workspace

# Tauri/React GUI (kept outside the Rust workspace because of GTK/WebKit)
cd app && pnpm install --frozen-lockfile && pnpm build
(cd src-tauri && cargo test)

# Validate a config file without starting the daemon
cargo run -p owld -- --check-config --config ./examples/config.toml

# Daemon + CLI round trip (the daemon is session-scoped: give it a sandbox)
./target/debug/owld --config ./examples/config.toml &
./target/debug/owlctl hello
./target/debug/owlctl kill

One-command dev session

./scripts/dev.sh                 # release daemon + GUI, builds what is missing
./scripts/dev.sh --debug         # same, but debug binaries
./scripts/dev.sh --no-gui        # daemon + CLI only
./scripts/dev.sh --no-build      # reuse the existing binaries

The script installs the bundled shader packs into ${XDG_DATA_HOME:-~/.local/share}/owld/shaders, starts owld in the background, prints hello/monitors, then launches the Tauri control panel. It stops the daemon on Ctrl-C only if it started it; an already-running daemon is left alone.

Use it

The daemon renders on a background layer surface; the CLI talks to it over the session socket.

owld &

owlctl hello                                  # version, capabilities, what this build cannot do yet
owlctl monitors                               # every output: size, state, current wallpaper

# Index your folders once, then browse them by reference.
owlctl library scan                           # walks `library.paths` from the config
owlctl library scan ~/Pictures/Wallpapers    # or an explicit folder
owlctl library list --filter aurora --page 1

# Apply: a path or a `library:<id>` reference, to one output or all of them.
owlctl set ~/Pictures/wallpapers/one.png      # every output
owlctl set library:12 -m eDP-1                # one output, by its stable library id
owlctl set library:12 --transition wave --duration-ms 450
owlctl get --monitor eDP-1                    # prints the path, or nothing if OWLD applied none
owlctl library thumb 12                       # materialise (or find) one cached thumbnail
owlctl pause  # / resume: governor override
owlctl playback pause -m eDP-1
owlctl playback seek 1.5 -m eDP-1
owlctl playback loop 0 5 -m eDP-1
owlctl playback play -m eDP-1
owlctl stats
owlctl clear -m eDP-1
owlctl kill

--json prints the raw reply for scripting. Exit codes: 0 success, 1 the daemon refused (with a protocol code such as CONFIG_INVALID or NOT_FOUND), 2 the daemon could not be reached.

The GUI (cd app && pnpm tauri dev) shows the same state as a library grid: thumbnail per wallpaper, a transition picker fed from the daemon's own config, per-output assignment (“Apply selected” on each output), apply-all, rescan, search, playback play/pause/seek/loop controls, and per-output decode/FPS/cache statistics — and says when the daemon is not running instead of failing silently.

After owlctl clear the output has no OWLD wallpaper, so a previous wallpaper tool (swaybg, swww, Caelestia) needs to be re-run if you were using one.

GUI

Needs Node ≥ 22 (pnpm 11 refuses to run on older Node), pnpm, and webkit2gtk-4.1:

cd app && pnpm install && pnpm tauri dev

Test harness

# Wayland + layer-shell + IPC smoke test. `--session` runs the same checks
# against the compositor you are already in (no root, no sway needed).
# `wayland-info` is optional; without it the layer-shell probe is reported as
# skipped rather than silently counted as a pass.
./scripts/headless-smoke.sh            # headless (needs sway + wayland-utils)
./scripts/headless-smoke.sh --session  # against the running session

# Regenerate the placeholder app icons (deterministic, no image editor involved)
cargo run -p owld-render --example gen-app-icons

# End to end on the session you are logged into: apply a four-colour test image,
# prove it reached the screen by sampling a screenshot, assert the layer surface,
# check session state, clear, and shut down. Needs grim + python3+PIL.
./scripts/e2e-hyprland.sh

# Live P4 probe: GIF and video frame clocks, play/pause/seek/loop, stats, clear,
# and clean shutdown. Requires a Wayland session, grim, python3+PIL, and at
# least one installed video runtime (GStreamer or FFmpeg).
./scripts/e2e-playback.sh

# NFR-PERF-1: 60 s of idle with a wallpaper on screen must stay under 1% of a core.
./scripts/idle-cpu.sh 60

# The GUI's daemon-facing layer: a stub daemon, plus a replay of recorded real
# daemon traffic (no compositor, no running daemon needed)
cd app/src-tauri && cargo test

# Re-record that fixture against the real daemon binary. Writes a reviewable diff
# into app/src-tauri/tests/fixtures/ — commit it when the wire shape changes.
./scripts/record-gui-fixtures.sh

License

GPL-3.0-or-later — see LICENSE. Ported code from reference projects is credited in ATTRIBUTION.md.

About

Low-resource live wallpaper engine for Wayland — Rust daemon + Tauri GUI. Hyprland and Caelestia first; generic layer-shell as the floor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages