Getting started

Shady is the compositor. Out of the box it is Tide, an everyday desktop with scrolling columns and niri’s keys. A shell drawn on top of it, shady-shell, is a package of its own; Gloam puts the two together with Tide’s bar, control center and login screen. Other rices give it another look. This page gets Shady running, shows the keys, and points at where to change things.

You need Linux with a GPU that does OpenGL ES 2 (any Mesa or NVIDIA driver does). The easy path is Nix; without it, see Building without Nix.

Try it in a window

From any Wayland session (GNOME, KDE, Sway, niri, …):

nix run github:gloaming-dusk/shady

This builds Shady and opens Tide’s layout and keys inside a window of your current desktop, with a terminal. Open applications from that terminal. Press Super+Shift+/ to see every shortcut. Close the window or press Super+Shift+Escape to leave.

With its shell, the whole desktop:

nix run github:gloaming-dusk/gloam

The same command run from a text console (Ctrl+Alt+F3, logged in) starts Shady full screen on that console.

From a checkout

git clone https://github.com/gloaming-dusk/shady
cd shady
nix develop          # wlroots 0.20.2, Lua 5.4, Meson, ...
./tools/build.sh     # builds into build/
WLR_BACKENDS=wayland ./build/shady   # Tide, nested

shady starts shady-shell when it finds one ($SHADY_SHELL_BIN, next to itself, or on PATH): build shady-shell alongside, and Tide’s shell.lua from Gloam is found with SHADY_RICE_PATH=../gloam/rices. Rices are repositories of their own (see the README); each has a run.sh run with SHADY_ROOT set to your checkout. Other ways to start the compositor from build/:

Command
WLR_BACKENDS=wayland ./build/shadythe default desktop, nested
WLR_BACKENDS=wayland ./build/shady -s footthe default desktop with a terminal and no shell; -s replaces what starts
SHADY_RICE=none WLR_BACKENDS=wayland ./build/shady -s footthe bare compositor
WLR_BACKENDS=wayland ./build/shady --safethe plain 2D path: no 3D renderer, physics or effects
./tools/run-native.sh --safe -s footfull screen on a text console, 2D path first
./tools/run-native.sh -s 'shady-shell & exec foot'full screen with the shell

-s runs a command once the compositor is up. Shady prints its WAYLAND_DISPLAY, so more clients can be started from another terminal.

On a console, run from a real login on a VT, not from a terminal inside another desktop. If Shady cannot take the seat, start it through seatd: seatd-launch ./build/shady --native. If run-native.sh says build/shady is outdated, rebuild with ./tools/build.sh.

Installing on NixOS

The flake has a NixOS module that adds a Shady session to your login manager:

{
  inputs.shady.url = "github:gloaming-dusk/shady";

  outputs = { nixpkgs, shady, ... }: {
    nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ./configuration.nix
        shady.nixosModules.default
        {
          programs.shady.enable = true;
          programs.shady.rice = "tide";          # the default; others come from programs.shady.rices
        }
      ];
    };
  };
}

Pick Shady (or Shady (safe), the 2D path) at login. programs.shady.softwareCursor = true helps on virtual machines whose cursor planes misbehave, and programs.shady.extraPackages replaces the tools installed alongside the session (a terminal, grim, …). The session logs to the journal: journalctl -t shady.

This is the compositor. For the shell and the login screen, import the modules of shady-shell and shady-greeter, or use Gloam, which turns on all of it.

Installing on Arch Linux

There is a PKGBUILD in packaging/arch. It builds the latest release and adds the Shady and Shady (safe) sessions:

cd packaging/arch
makepkg -si

Building without Nix

Install the development packages for wlroots 0.20.2 (exactly the 0.20 series), wayland, wayland-protocols, wlr-protocols, libxkbcommon, libinput, pixman, libdrm, EGL/GLES2, Lua 5.4, cairo, pango and fontconfig, plus Meson, Ninja and pkg-config. Then:

meson setup build
ninja -C build
sudo ninja -C build install   # optional; adds the shady and shady-safe sessions

After installing, shady-session starts the session with the rice named by SHADY_RICE (default tide), and shady-shell if it is on PATH.

Keys

Super+Shift+/ lists the shortcuts of the running session: the compositor’s, the rice’s and those of each loaded plugin. What follows are the compositor’s, which Tide mostly replaces with niri’s: see its README (Super+Space for the launcher, Super+Return for a terminal, Super+1…9 for workspaces). The tables below describe the bare compositor (SHADY_RICE=none) and the 3D rices.

Everywhere

Keys
Super+Shift+/show the shortcuts
Alt+Tabfocus the next window
Alt+F11close the focused window
Escapequit (rices move this to Super+Shift+Escape)
Super + dragmove the window under the pointer
Super + right-dragresize it from the nearest corner
drag just outside a window’s edgeresize it from that edge

The 3D camera (spatial mode)

Input
Alt + right-drag / middle-dragorbit / pan
Alt + scrollzoom
Alt+Shift + scrollmove the focused window in depth
Alt + arrows, Alt+Q / Alt+Epan, turn
Alt+= / Alt+-, Alt+0zoom, reset
F5show collision and picking

First person

Input
F2enter or leave first-person mode
F3capture or release the pointer
F4window gravity on or off
W A S D, mouse, Spacewalk, look, jump
click / right-clickpick up or drop the window in view / throw it
scroll while holdingbring it closer or push it away

A window thrown out of the world comes back by itself; shady.respawn_all() brings back all of them.

Each binding can be changed in config.lua (shady.bind("quit", "Super+Shift+Escape"), "none" removes one); the names are listed in LUA_API.md.

Making it yours

Shady reads three Lua files from ~/.config/shady/. Anything missing comes from Tide, so start with one and add the others when you need them.

FileRunsFor
config.luabefore the compositor startssettings, modules, plugins, compositor key names
init.luaonce it is runningyour key bindings, window rules, reacting to events
shell.luain shady-shell, when installedbars, panels, the launcher; reloads when saved

Start from Tide and change what you want:

-- ~/.config/shady/config.lua
shady.base("tide")
shady.set("window_corner_radius", 6)
shady.plugins.load("border-accent")
-- ~/.config/shady/init.lua
shady.base("tide")
shady.bind("Super+b", function() shady.spawn("firefox") end, "Browser")
shady.rule({ app_id = "mpv", floating = true })
-- ~/.config/shady/shell.lua
shell.base("tide", { palette = { accent = "#FF9E64" } })

Customizing has the rest: everything a config can add to Tide, shady-rice eject to make a copy of it your own, and SHADY_RICE=none to start from the bare compositor. The full references are the Lua API, the Shell Lua API and the Plugin manager; API overview says which one fits a task.

When something is wrong

  • Black screen or a crash on start: try --safe (or the Shady (safe) session). If that works, the 3D renderer is at fault; the log says why.
  • No pointer on a virtual machine: SHADY_SOFTWARE_CURSORS=1, or programs.shady.softwareCursor on NixOS.
  • “the spatial module requires the GLES2 renderer”: the 3D path needs GLES2; unset WLR_RENDERER=pixman, or use --safe.
  • The shell does not appear: it is a package of its own; check that shady-shell is on PATH (or set SHADY_SHELL_BIN), then run it from a terminal inside Shady to see its errors. A broken shell.lua falls back to the plain UI.

Shady is experimental. Bug reports with the log are welcome at https://github.com/gloaming-dusk/shady/issues.