Wayland, with depth

A desktop you can live in, and take apart.

Gloam is a Wayland desktop: scrolling columns, a quiet glass shell called Tide, its own lock and login screens. Underneath is Shady, a 3D compositor, and every layer is yours to change, from one setting to all of it.

Tide: three terminals in a strip of columns under a glass bar with a minimap of the strip, and a notification at the top right
wlroots 0.20.2Wayland core
GLES2Spatial renderer
C ABI v2Hot-reload plugins
Lua 5.4Config + runtime

The default desktop

Tide: tiling, without leaving the depth.

Made to be the desktop you use all day, with everything one needs, from the first thing you see at boot to the screen you lock.

Tide's overview: the camera pulled back over the strip of columns
  • Scrolling columnsniri's model and niri's keys: new windows open beside the focused one, and the strip glides to keep it on screen. Tap Super for a 3D overview, and type to search.
  • A whole shellA glass bar with a minimap of the strip, control center, launcher with a calculator, screenshot picker, power menu, OSD and notifications.
  • Lock and loginIts own lock screen, password and fingerprint at once, and a login screen for greetd drawn the same way, so logging in only fills in the windows.
  • Light when idleRendering on demand, a shell that repaints only what changed, and idle timeouts that a playing video holds back.

Make it yours

Stop at whatever depth you like.

Most desktops let you change their settings; most compositors hand you an empty screen. Here each step is a small one from the last.

01

Use it

Nothing to configure. Install it and this is the desktop, with a wallpaper and a few settings if you want them.

~/.config/shady/wallpaper.png
02

Build on it

Start your config from Tide and change colours and keys, or add bar islands, control center tiles and launcher results. Tide's updates keep reaching you.

shell.base("tide", { ... })
03

Take it apart

Copy all of Tide into your config directory. The whole shell, the keys and the look are then plain Lua files of your own.

shady-rice eject
04

Start from nothing

Underneath is still the bare 3D compositor. Every rice and plugin made for it keeps working, and you can write your own from a blank file.

SHADY_RICE=none
on top of Tide, in Lua
-- ~/.config/shady/init.lua
shady.base("tide")
shady.bind("Super+b", function()
    shady.spawn("firefox")
end, "Browser")

-- ~/.config/shady/shell.lua
local tide
tide = shell.base("tide", {
    palette = { accent = "#FF9E64" },
    bar = { right = function(ctx)
        return tide.island {
            tide.text(shell.date("Week %V"))
        }
    end },
})
under it, in C
/* A sky that knows where the camera is. */
static void draw(shady_host host,
        const struct shady_render_context *ctx, void *data) {
    if (!SHADY_RENDER_CONTEXT_HAS(ctx, aspect)) return;
    api->shader_uniform_vec4(host, sky, "u_cam_fwd",
        ctx->camera_forward[0], ctx->camera_forward[1],
        ctx->camera_forward[2], 0.f);
    api->shader_uniform_float(host, sky, "u_time",
        ctx->time_seconds);
    api->shader_draw_fullscreen(host, sky);
}

hook = api->render_hook_add(host,
    SHADY_RENDER_STAGE_AFTER_BACKGROUND, draw, NULL);

Underneath

Experiments, with boundaries.

The compositor owns Wayland objects, GPU resources, lifetime and validation. Plugins and scripts own the effects, layouts and simulations layered on top, and can be swapped while it runs.

A real perspective world

xdg-shell clients become lit 3D panes with rounded glass frames, depth, wobble and shadows. Drawing, picking and collision share one geometry.

Hot-reloadable C plugins

Window representations, render hooks with the live camera, input and per-window shaders. ABI v2 migrates state across reloads.

Lua, three times

config.lua shapes the compositor before modules resolve, init.lua reacts to windows and keys at runtime, and shell.lua is the desktop itself, reloaded as you save.

Panels in the 3D world

Any layer-shell client, shady-shell or waybar alike, can be frosted, blurred or turned in perspective, and pointer input still lands where it is drawn.

Headless, sanitized tests

Drive input, timers and screenshots from Lua against a headless GLES2 backend, under AddressSanitizer and UBSan.

A safe scene-graph path

--safe drops the spatial renderer for a conventional wlroots scene graph, so a broken experiment never locks you out.

Fast path

One command, in a window.

From any Wayland desktop with Nix. Nothing is installed, and closing the window ends it.

terminal
nix run github:gloaming-dusk/shady