Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Atrium is a workspace-driven tiling Wayland compositor, and a curated desktop built from independent components, for Void Linux.

An atrium is the central courtyard of a Roman house. Every room opens onto it, each with a purpose, a fixed location, things that belong there. Workspaces follow that idea: a window belongs to exactly one workspace, and bringing a workspace to a monitor swaps it with whatever was there. Window management lives in spatial memory.

Components

ComponentRole
atriumCompositor, fixed workspace model and five tiling algorithms; a fork of niri
atrium-shellRust surface hosting, controls, layout, theming and KDL composition
atrium-widgetsOptional independently packaged first-party widgets
atrium-networkNetwork service, GTK4 GUI and CLI for Wi-Fi, Ethernet and VPNs
atrium-portalScreenCast portal backend
atrium-greetGraphical frontend for greetd/PAM
atrium-powerIndependent power controls and lock-before-sleep policy
atrium-keyringApplication Secret Service and native credential prompts
xbps-templatesOwned and patched package templates
atrium-setupEventual desktop profile and ISO composition

Principles

  • Do one thing well. The compositor manages windows. Shell, widgets, notifications, launchers, lockers and application services have independent owners.
  • Workspaces, not tags. Each window has one workspace; monitors show workspaces rather than owning their windows.
  • Keyboard-first. The compositor handles bindings without a hotkey daemon.
  • Small base. Void, runit, seatd, doas and pam_rundir supply the desktop foundation. Standard Wayland protocols and D-Bus connect components.
  • Replaceable parts. Installing a component does not silently select personal configuration or activate an entire desktop.

Availability

Pre-release. Build selected components from source on an existing Void installation. The shell starts with an empty bar; install widgets and select them explicitly. General Settings source is not part of current default builds.

Source implementation, staged installation, isolated integration tests and physical hardware acceptance are distinct. Package templates exist, but the signed public repository, full desktop package set and installable ISO remain distribution work. See Status and Build and install.

Source and reports

Repositories and issue trackers live on the project’s git server. Report bugs to the owning component. Report security vulnerabilities privately to security@atrium-project.org; see Security policy.

Build and install

Atrium is built from source on an existing Void Linux installation. Each component owns its build and installed payload. The curated desktop, signed public package repository and ISO remain distribution work; there is no complete desktop installer to run today.

Compositor dependencies

The compositor manifest requires Rust 1.87 or newer. Install Make, a C toolchain and the development libraries:

doas xbps-install -S rust cargo make base-devel pkg-config \
    libdrm-devel libgbm-devel libinput-devel libseat-devel libxkbcommon-devel \
    mesa-devel wayland-devel wayland-protocols \
    pango-devel cairo-devel pipewire-devel libdisplay-info-devel

Runtime dependencies include libdrm, libinput, libseat, libxkbcommon, Mesa, Wayland, Pango, Cairo, PipeWire and libdisplay-info. The Void desktop uses seatd for device access, greetd/PAM with pam_rundir for login, and D-Bus for portals and application services. Enable the seatd service and add the desktop user to _seatd; changed group membership needs a fresh login. See The system underneath.

For X11 applications, install xwayland-satellite. Screen sharing also needs xdg-desktop-portal, xdg-desktop-portal-gtk and the separately built atrium-portal.

Build the compositor

git clone https://git.efpsoftware.org/atrium/atrium.git
cd atrium
make build
doas make install

make build prepares the release binary and installed launchers with --no-default-features --features dbus,screencast. The build omits systemd support and retains D-Bus and screencasting. make install copies the prepared payload without compiling.

The default prefix is /usr: executables go to /usr/bin, login entries to /usr/share/wayland-sessions, and the default configuration to /usr/share/atrium/default-config.kdl. The portal selection and licensed Heroicons are also installed. Use the same PREFIX, BINDIR and DATADIR overrides for build and install. DESTDIR stages files without changing runtime paths. Installing under another prefix does not remove an older installation.

make test runs formatting, clippy with warnings denied and workspace tests. The compositor’s make test-release adds the slow and installation tiers; passing ordinary tests alone does not qualify a release.

First configuration and login

If you do not already have a user configuration:

mkdir -p ~/.config/atrium
cp /usr/share/atrium/default-config.kdl ~/.config/atrium/config.kdl

Choose the terminal and launcher under binds (Mod+Return, Mod+R). Add startup commands for the components you installed:

spawn-at-startup "atrium-shell"
spawn-at-startup "pipewire"

Commands run independently once per compositor start. Config reload does not rerun them. PipeWire starts WirePlumber through its configuration drop-in; do not spawn WirePlumber separately.

The installed Atrium login entry invokes the compositor’s atrium-session shell launcher. Login still requires an administrator-configured greetd/PAM stack. The session explains the boundary; atrium-greet is an optional graphical frontend.

Try a nested instance

Use an explicit configuration without startup commands or environment overrides, and a separate state directory. For example, create a comments-only file at /tmp/atrium-nested.kdl, then from the compositor repository run:

XDG_STATE_HOME=/tmp/atrium-nested-state ./target/release/atrium -c /tmp/atrium-nested.kdl

This opens a compositor window inside the existing Wayland session. Do not pass --session, which selects the TTY/DRM path. Any IPC experiments must target this instance’s socket explicitly rather than the parent desktop.

Build other components separately

Clone each selected repository from the source list, then run make build as the ordinary user and doas make install in that repository. Their dependency and activation requirements differ:

ComponentGuide
Shell and optional widget collectionShell, Widgets
Network service, GUI and CLINetwork
Screen sharingPortal
Power and lock-before-sleepPower
Graphical login frontendGreeter
Application credentialsKeyring, requires Rust 1.95 or newer

Installing one component does not update the others or select their live service, PAM or user-startup configuration. General Settings source is outside the default builds. XBPS templates consume component Make targets; Setup owns eventual package/profile and ISO assembly.

The session

Login lifetime and recovery belong to greetd/PAM and system-service supervision. The compositor owns display resources and starts user-selected programs. There is no separate Atrium Session product or private lifecycle registration protocol.

Login chain

runit → greetd → greeter frontend → PAM → desktop entry → atrium-session → atrium --session

The greeter may be tuigreet or atrium-greet. Authentication belongs to greetd and PAM. The selected desktop entry names the compositor-owned atrium-session shell launcher. pam_rundir supplies the runtime directory at login.

The launcher:

  1. Prepends its installed binary and data directories to PATH and XDG_DATA_DIRS, selecting the same installation for commands and desktop services.
  2. Supplies /run/user/$(id -u) when XDG_RUNTIME_DIR is absent. pam_rundir can omit the variable for a subsequent same-user login.
  3. Re-executes under dbus-run-session when a session bus is absent.
  4. Publishes the base D-Bus activation environment, then executes the installed compositor with --session.

The debug login entry uses atrium-session-debug, adding -d for compositor logging. These launchers do not replace PAM or supervise every user process. Successful desktop startup alone does not prove cleanup after a broker, worker or compositor failure.

Environment

The compositor sets XDG_CURRENT_DESKTOP=atrium and XDG_SESSION_TYPE=wayland. Once its socket exists it publishes WAYLAND_DISPLAY, ATRIUM_SOCKET, DISPLAY and the selected GPU environment. Cursor variables come from the cursor configuration.

When greetd’s source_profile is enabled, /etc/profile and the user’s .profile supply the login environment. The launcher does not re-execute an interactive shell. A terminal’s .bashrc or .zshenv is not a reliable way to configure applications launched directly by the compositor.

Set compositor-spawned application variables in config.kdl:

environment {
    GTK_THEME "Arc-Dark"
    _JAVA_AWT_WM_NONREPARENTING "1"
}

Only select themes you have installed. Reload reaches newly spawned processes; existing applications keep their environment. See Configuration.

User startup

The user’s compositor configuration selects shell, audio and personal programs:

spawn-at-startup "atrium-shell"
spawn-at-startup "pipewire"
spawn-sh-at-startup "wl-paste --watch cliphist store"

Startup commands run independently once per compositor start, not on reload. File order does not establish service readiness. Network’s system service belongs to runit; optional Keyring startup follows the graphical bus lifetime. The shell owns only its selected widget children.

Logs and acceptance

The compositor writes ~/.local/state/atrium/atrium.log by default, with five previous-session rotations. Panics include a backtrace. The portal writes ~/.local/state/atrium/atrium-portal.log. XDG_STATE_HOME selects another state root.

Disposable login tests and nested compositor checks do not prove physical VT/DRM/seat transfer or supported-hardware suspend/resume. Login, logout and failure recovery need acceptance against the selected installation and effective PAM/service configuration.

The system underneath

The curated desktop targets Void Linux with runit. Components own their builds and installed payloads; XBPS owns packaged dependencies and upgrades. atrium-setup holds inputs for eventual desktop profiles and ISO assembly. Its personal bootstrap scripts are not a complete, approved desktop installer.

Session foundation

Kernel (DRM, input, udev)
  ↑
seatd          device broker, runit service; user in group _seatd
  ↑
libseat
  ↑
atrium

greetd + PAM   authentication and session launch
pam_rundir     /run/user/$UID at login
doas           explicit privileged operations
udevil         removable media
D-Bus          portals, networking and application services

This profile does not use systemd, elogind, polkit, NetworkManager, gvfs or udisks2. PAM and group membership remain explicit administrator configuration. Do not replace an existing PAM stack with a generic example without reviewing its effective login policy.

Network

atrium-network runs a privileged runit service over wpa_supplicant, dhcpcd, WireGuard, OpenVPN and openresolv. Its GUI and CLI use a root:network socket. Network-group membership grants administration and access to saved credentials. Service-owned activation replaces direct GUI execution of privileged VPN commands.

Audio and notifications

PipeWire starts WirePlumber through its configuration drop-in. spawn-at-startup "pipewire" is the only compositor audio launch line. Audio widgets consume PipeWire; they do not own the service.

Notifications remain an external daemon such as mako. Screen locking uses a separate locker such as swaylock; Power integrates secure lock readiness with suspend and optional Secret Service locking.

Login and credentials

Stock greetd/PAM owns login. atrium-greet supplies an optional graphical frontend. atrium-keyring supplies an independently selected oo7-backed Secret Service with optional PAM unlock. Neither requires a separate Atrium Session supervisor.

Logging

The curated base uses socklog-void with nanoklogd and socklog-unix for persistent kernel/system evidence under /var/log/socklog/. Compositor and portal application logs are described in The session.

Maintained packages

The xbps-templates overlay contains owned templates and deliberate divergences from Void:

  • NVIDIA DKMS uses the open kernel-module sources with a semaphore surface callback leak fix.
  • xwayland-satellite carries iconify/minimize bridging.
  • OpenJDK 11 and 21 templates carry selected security updates.
  • Quickshell has a lean build and portal identity fix for consumers that still use it. The Rust Atrium Shell does not depend on Quickshell.
  • Independent Keyring and explicitly selected desktop keyring-profile templates are present.

libseat is built without its elogind option. greetd and pam_rundir use stock distribution packages. Template availability and local package builds do not establish a signed public binary repository, a complete desktop metapackage or an ISO. Consult the overlay for exact versions, patches, build requirements and upgrade policy.

Workspaces and monitors

Workspaces

Ten fixed workspaces by default, defined by workspace blocks in the config. They always exist; nothing spawns or destroys them. Each holds an ordered list of windows, its own layout algorithm, and its own layout parameters (master ratio, master count, stack columns, flip, gaps).

A window belongs to exactly one workspace. There is no multi-membership and no tagging.

Workspaces have no monitor affinity. Any workspace can appear on any monitor.

Monitors

Each connected monitor shows exactly one workspace, and no two monitors show the same one. Bringing a workspace to a monitor (Mod+1 through Mod+0) does one of two things:

  • if the workspace is on another monitor, the two monitors swap workspaces;
  • if the workspace is unattached, it replaces the one on this monitor, which becomes unattached.

An unattached workspace keeps its windows and layout state. Nothing is lost; it is simply not on screen.

Monitors are identified by EDID (manufacturer, model, serial) for persistent configuration, falling back to the connector name.

Hotplug

When a monitor connects, it gets the workspace last shown on it, or the lowest-numbered unattached workspace. When a monitor disconnects, its workspace becomes unattached with everything preserved, and can be brought to any remaining monitor.

Focus

Focus follows keyboard commands, not the pointer. Clicking a window focuses it; moving the pointer over it does not. focus-follows-mouse in the input block turns pointer focus on.

Mod+N moves focus to the next monitor; Mod+Shift+N moves the focused window there.

Where new windows open

On the active workspace of the active monitor, unless a window rule says otherwise (open-on-workspace). Dialogs float and open on their parent’s monitor. Fixed-size windows float.

Sending windows

  • Mod+Shift+<n>: send the focused window to workspace n and stay.
  • Mod+Ctrl+<n>: send it and follow.
  • Mod+Shift+Left/Right: send it to the previous or next workspace.

Labels and icons

A workspace can carry a display label and an SVG icon for bars:

workspace "1" {
    label "Trading"
    icon "icons/heroicons/o-chart-bar.svg"
}

Relative icon paths resolve under $XDG_DATA_HOME/atrium/ then /usr/share/atrium/, where the compositor installs 325 Heroicons. Both fields are exposed over IPC and rendered by atrium-shell.

Layouts

The layout engine is one function: layout(windows, rect, params) → geometries. Every algorithm implements the TilingLayout trait and is stateless; the state lives in the workspace’s LayoutParams.

The five algorithms

Cycle per workspace with Mod+]; reset with Mod+[.

AlgorithmArrangement
master-stack (default)Master area on the left, stack on the right. Adjustable master count, ratio, stack columns, and flip.
centered-masterMaster window centered, stack columns flanking both sides.
fibonacciWindows spiral inward, each taking half the remaining space.
gridEqual cells in rows and columns.
monocleOne window fills the working area; the bar stays visible.

Set the default globally or per workspace:

layout {
    default-algorithm "master-stack"
}

workspace "media" {
    layout {
        default-algorithm "monocle"
        gaps 0
    }
}

Parameters

Per workspace, adjusted live from the keyboard, remembered independently:

ParameterDefaultKeys
master-ratio0.55Mod+L grow, Mod+H shrink
master-count1Mod+, add, Mod+. remove
stack-count (stack columns)1Mod+Shift+, add, Mod+Shift+. remove
flipoffMod+\
gaps8 pxconfig only

Moving windows within a layout

  • Mod+/: swap the focused window with master.
  • Mod+Shift+J / Mod+Shift+K: swap with the next or previous window.
  • Mod+Tab: focus master. Alt+Tab / Shift+Alt+Tab: focus next or previous window (plain cycling; every window is already visible in a tiling layout, so there is no most-recently-used switcher).

Floating, fullscreen, maximize, iconify

  • Mod+F toggles floating. Floating windows render above tiles and move or resize with Mod+drag. Window rules can float an app permanently.
  • Mod+Shift+F fullscreen covers the whole output, bar included. Apps can request it themselves (F11 in a browser, double-click in mpv).
  • Mod+M maximize fills the working area and keeps the bar visible.
  • Mod+I iconifies: the window stays on its workspace but leaves the layout until Mod+Shift+I restores it. What a client’s own minimize request does is the iconify-action setting (ignore by default, iconify, or send-to-workspace <n>).

Adding an algorithm

Implement TilingLayout in src/layout/tiling/ and register it in tiling/mod.rs. No other file changes. The golden geometry snapshots in src/layout/tests/tiling_geometry.rs pin every algorithm’s exact rectangles for one to six windows; a new algorithm adds its own.

Keybindings

The compositor handles every key event before clients see it. If a binding matches, the event is consumed. There is no hotkey daemon.

Mod is Super on a real session and Alt when running nested under winit. Press F1 at any time for the on-screen overlay of the current bindings.

Defaults

The shipped config binds these. Everything is in the binds block of the default config and can be changed.

Session

KeysAction
Mod+Shift+E, Ctrl+Alt+DeleteQuit the compositor
Mod+Shift+RReload the config file
Mod+EscapeToggle keyboard-shortcut inhibiting (for apps that grab keys)
F1Show the hotkey overlay

Applications

KeysAction
Mod+ReturnTerminal (alacritty in the default; set yours)
Mod+RLauncher (fuzzel in the default; set yours)

No app-specific launch bindings ship. Add your own spawn binds.

Windows

KeysAction
Mod+QClose window
Mod+Shift+QKill window (SIGKILL)
Alt+Tab / Shift+Alt+TabFocus next / previous window
Mod+TabFocus master
Mod+UFocus the urgent window
Mod+/Swap with master
Mod+Shift+J / Mod+Shift+KSwap with next / previous
Mod+FToggle floating
Mod+Shift+FFullscreen
Mod+MToggle maximize
Mod+I / Mod+Shift+IIconify / restore
Ctrl+DownRelease pointer lock or confinement until the next click

Layout

KeysAction
Mod+]Cycle layout algorithm
Mod+[Reset layout
Mod+\Flip layout
Mod+L / Mod+HGrow / shrink master area
Mod+, / Mod+.Add / remove a master window
Mod+Shift+, / Mod+Shift+.Add / remove a stack column

Workspaces and monitors

KeysAction
Mod+1 … Mod+0Bring workspace 1 to 10 to this monitor
Mod+Shift+1 … Mod+Shift+0Send window to workspace, stay
Mod+Ctrl+1 … Mod+Ctrl+0Send window to workspace, follow
Mod+Left / Mod+RightPrevious / next occupied workspace
Mod+Up / Mod+DownPrevious / next workspace, including empty
Mod+Shift+Left / Mod+Shift+RightSend window to previous / next workspace
Mod+WheelCycle workspaces
Mod+N / Mod+Shift+NFocus next monitor / move window to next monitor

Media and screenshots

KeysAction
XF86AudioRaiseVolume / LowerVolume / Mute / MicMutePipeWire volume and mute via wpctl
XF86MonBrightnessUp / Downbrightnessctl
PrintScreenshot: the screen freezes and dims, drag to select, release to capture (dropdowns and tooltips survive)
Shift+PrintScreenshot the active output
Alt+PrintScreenshot all outputs as one image
Ctrl+PrintScreenshot the active window
Mod+Shift+X / Mod+Ctrl+XPower monitors off / on

Screenshots save to screenshot-path or pipe into screenshot-annotator (satty, for example) when that is set.

The separate recent-windows switcher defaults include Mod+Shift+Tab and same-application Alt+Grave / Alt+Shift+Grave. Its bindings live under recent-windows; Alt+Tab remains immediate focus cycling on the current workspace.

Writing a binding

binds {
    Mod+Return { spawn "ghostty"; }
    Mod+Shift+S { spawn-sh "grim - | wl-copy"; }
    Mod+Q repeat=false { close-window; }
    XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
    Mod+WheelScrollDown cooldown-ms=150 { ws-next-all; }
}

Modifiers joined by +, then an XKB key name. spawn takes an argument list; spawn-sh runs a shell line. Any action from atrium msg action --help can be bound. Options: repeat=false, allow-when-locked=true, allow-inhibiting=false, cooldown-ms.

Window rules

Rules match windows by app-id (Wayland) or class (XWayland), with optional title, and are evaluated in order; every matching rule’s properties merge.

window-rule {
    match app-id="signal"
    open-on-workspace "10"
}

window-rule {
    match app-id="pavucontrol"
    open-floating true
}

window-rule {
    match app-id=r#"firefox$"# title="^Picture-in-Picture$"
    open-floating true
}

window-rule {
    match app-id=r#"^org\.wezfurlong\.wezterm$"#
    default-window-width {}
}

Match values are regular expressions. open-on-workspace takes a workspace name or index. open-floating, default-window-width, and iconify-action are the rule properties Atrium adds to what niri already supports; the niri rule properties (opacity, borders, block-out-from screencast, and so on) apply as documented upstream.

Find an app’s id with atrium msg pick-window or atrium msg windows.

Configuration

One file, ~/.config/atrium/config.kdl, in KDL. It hot-reloads: save and the change applies. Mod+Shift+R reloads by hand. A parse error keeps the previous config running and shows an error overlay.

The installed copy at /usr/share/atrium/default-config.kdl is the annotated reference; it is reproduced in full under Default configuration.

Sections

NodeWhat it configures
inputKeyboard (xkb layout, numlock), touchpad, mouse, trackpoint, focus-follows-mouse, warp-mouse-to-focus
output "name"Mode, scale, transform, position per monitor. atrium msg outputs lists names and modes.
layoutDefault algorithm, gaps, focus ring, border, shadow, default window width, preset widths
workspace "name"Label, icon, open-on-output, and a per-workspace layout override
environmentVariables for everything the compositor spawns. See The session.
spawn-at-startupPrograms to launch with the session (pipewire, the shell, a wallpaper setter)
cursorCursor theme and size
hotkey-overlayWhether the keybind overlay shows at startup
screenshot-path, screenshot-annotatorWhere captures go, or which tool receives them on stdin
iconify-actionWhat a client minimize request does
animationsOff, or a slowdown factor
window-ruleSee Window rules
bindsSee Keybindings
debugBackend knobs, including render-drm-device for hybrid GPUs

Atrium inherits most of niri’s option surface; the niri configuration reference applies for anything not covered here, except niri’s scrolling-layout options, which Atrium does not have.

Hybrid GPU

If compositor and consumer use different GPUs with incompatible DMA-BUF modifiers, selecting a matching render device can help:

debug {
    render-drm-device "/dev/dri/renderD129"
}

Find the right node with ls -l /dev/dri/by-path/; render-node numbers are machine-specific. This setting requires a compositor restart. Capture also supports shared-memory buffers, with a debug switch for isolating DMA-BUF negotiation. See atrium-portal.

Files next to it

Shell composition lives at ~/.config/atrium-shell/config.kdl, separate from the compositor configuration. A composition can select a theme file. RSS and weather widgets retain their own settings files under ~/.config/atrium/ unless overridden. See Shell and Widgets.

IPC

The compositor listens on a Unix socket, $XDG_RUNTIME_DIR/atrium.<DISPLAY>.<PID>.sock, exported as $ATRIUM_SOCKET. The protocol is JSON, one message per line: send a Request, get a Reply; request EventStream to receive Event messages for as long as the connection lives. It is niri’s protocol with Atrium’s workspace and layout state added.

atrium msg

atrium msg workspaces          # every workspace with its layout state
atrium msg windows
atrium msg outputs
atrium msg focused-window
atrium msg pick-window         # click a window, print its details
atrium msg event-stream        # follow events
atrium msg action focus-workspace 3
atrium msg action close-window
atrium msg action --help       # every bindable action
atrium msg -j workspaces       # JSON

Subcommands: get-config, set-config, outputs, workspaces, windows, layers, keyboard-layouts, focused-output, focused-window, pick-window, pick-color, action, output, event-stream, version, overview-state, casts.

Workspace fields

{
  "id": 3, "idx": 3, "name": "3", "output": "HDMI-A-1",
  "label": "Terminal", "icon": "/usr/share/atrium/icons/heroicons/o-command-line.svg",
  "show_label": true, "show_icon": true,
  "is_active": true, "is_focused": true, "is_urgent": false,
  "active_window_id": 42,
  "layout": "master-stack", "master_ratio": 0.55, "master_count": 1, "flipped": false
}

Windows carry is_iconified alongside the usual id, title, app id, workspace, and focus fields.

Events

A consumer connects, receives a full snapshot (workspaces, windows, layout), then a stream of changes: WorkspacesChanged, WorkspaceActivated, WindowOpenedOrChanged, WindowClosed, WindowFocusChanged, WindowUrgencyChanged, KeyboardLayoutsChanged, CastStartedOrChanged, and the rest. Consumers filter client-side. A layout change (algorithm, ratio, flip) emits WorkspacesChanged.

The consumer pattern

The event stream begins with full state snapshots. Apply later events to that state, or re-query the relevant collection when it changes. After disconnect, discard stale state and reconnect for a fresh snapshot. The optional workspaces package in atrium-widgets consumes Atrium IPC; the shell core does not require a fixed widget inventory.

Persisted configuration

atrium msg get-config returns persisted settings, a revision and editing capabilities. atrium msg set-config --revision REVISION KEY JSON_VALUE changes one supported setting; --output NAME selects an output where required. Values are JSON, so strings need JSON quoting. Use atrium msg set-config --help for argument syntax.

Editors must inspect capabilities and the read-only reason rather than infer support from executable presence. Writes preserve comments and unrelated fields, reject stale revisions, and refuse system fallback files, includes, hard links and read-only files. Symlinks are preserved while their resolved target is updated. A successful write persists the file; the event stream’s ConfigLoaded event reports reload success or failure. Re-read state after writes or external edits. This interface is distinct from temporary output commands.

Screencast requests

Request::StartCast creates a PipeWire stream for an output or window and answers with session and stream ids; CastStartedOrChanged then carries the pw_node_id. This is how atrium-portal hands a node to xdg-desktop-portal without any Mutter-compatible D-Bus surface.

atrium-shell

A Rust desktop UI foundation for surfaces, controls, layout and theming. Users compose their desktop in KDL and select independently packaged widgets. The shell builds and runs without the first-party widget collection or a Settings application. It does not require Quickshell or QML.

Build and run

From the shell repository:

make build
doas make install
atrium-shell

The default prefix is /usr. Installation copies the prebuilt executable, the system default configuration and the shell’s licensed Heroicons. Use matching path overrides for build and install; DESTDIR stages the payload. See the repository README for dependencies and path overrides.

First launch copies /etc/default/atrium-shell/config.kdl to $XDG_CONFIG_HOME/atrium-shell/config.kdl, normally ~/.config/atrium-shell/config.kdl, only if the user file is absent. The default creates an empty, full-width top bar on the first output in desktop position order.

Select autostart in the compositor configuration:

spawn-at-startup "atrium-shell"

Composition

After installing atrium-widgets, a minimal shell configuration is:

surface "main" {
    height 32
    reserve-space true
    background "#383c4a"
    padding 8
    gap 6
    widget "clock" package="/usr/share/atrium-widgets/clock/widget.kdl" zone="end"
}

Omit output for the first output, use output="*" for every output, or select a connector with surface "main" output="HDMI-A-1". A surface assigned to a disconnected connector waits for its return. Instance IDs must be unique within each surface.

Widgets can occupy start, center and end zones, or use an explicit row/column layout. An optional theme "theme.kdl" selects a theme relative to the composition file. Widget packages own their views, behavior and settings.

The shell watches configuration and presentation files. Invalid edits retain the working interface and show an error. Validate a file without opening surfaces:

atrium-shell --check ~/.config/atrium-shell/config.kdl

--config FILE.kdl selects an existing explicit file; ATRIUM_SHELL_CONFIG is the environment equivalent. See Configuration for the complete syntax.

Ownership and limits

Selecting a widget package starts its process through private inherited pipes; removing the instance or closing the host stops it. MPD, PipeWire, Network and other external services keep their own lifetimes. Widget crash recovery is not automatic.

Panel surfaces currently span the output width at the top. Side and bottom placement, constrained or floating panel geometry and shape controls remain design work. Ordinary application windows have a separate supported surface role. Independent widget authoring beyond the first-party collection remains a separate acceptance milestone.

General Settings source is outside the shell’s default build and installation. It is not an installed editor for current KDL composition. See Settings.

atrium-widgets

The optional first-party collection for atrium-shell. Each package owns its presentation, behavior, defaults and executable entrypoint. Packages use the shell’s public package/process contract without importing private shell source.

Install and select

From the widget repository:

make build
doas make install

The default prefix is /usr. Executables install to /usr/bin and packages to /usr/share/atrium-widgets. PREFIX, BINDIR, DATADIR and DESTDIR support other layouts and staging. The build, installation and runtime use Rust; no Python widget launcher is required.

Select a package in the shell configuration:

surface "main" {
    height 32
    widget "clock" package="/usr/share/atrium-widgets/clock/widget.kdl" zone="end"
}

The shell starts the selected package process and communicates through private stdin/stdout pipes. No provider daemon or listening socket needs to be launched. Removing the instance stops its process.

Collection

PackageIntegration
clock, timezonesLocal time, named time zones and calendar queries
workspacesAtrium IPC state and workspace actions
mpdMPD playback, queue and artwork
trayStatusNotifierItem and DBusMenu
audioPipeWire state and controls
networkAtrium Network service status and application launch
bandwidthInterface counters and optional bandwhich process sampling
weatherOpenWeatherMap
btcCoinGecko quotes
rssRSS/Atom feeds and article opening

Clock and timezones use the operating system’s TZif data; named zones require tzdata. RSS defaults to $XDG_CONFIG_HOME/atrium/feeds.kdl, weather to $XDG_CONFIG_HOME/atrium/weather.kdl. Both accept a settings path on the instance. MPD uses MPD_HOST/MPD_PORT; workspaces uses ATRIUM_SOCKET; Network uses ATRIUM_NETWORK_SOCKET, normally /run/atrium-network/control.sock.

Closing the shell stops widget children, but does not stop MPD, PipeWire, Network or the compositor. Live service availability and user credentials are separate from fixture verification. See the widget repository and the shell’s package contract.

atrium-network

One Rust executable provides a GTK4 GUI, a CLI and a privileged network service. Both clients use the same local API. Closing a client leaves connections running. The service manages wpa_supplicant, dhcpcd, WireGuard, OpenVPN and openresolv.

The GUI is an ordinary floating window. Wi-Fi, VPN and Ethernet have stable rows with expandable details; virtual interfaces are in diagnostics. Close, Escape or the compositor’s close-window shortcut dismiss it. The shell’s optional Network widget displays status and opens the application.

Build and installation

Build dependencies include Rust/Cargo, Make, a C linker, pkg-config and GTK4 development libraries. The runit installation renderer also requires Python 3. Runtime packages include GTK4, system D-Bus, wpa_supplicant, dhcpcd, wireguard-tools, OpenVPN, openresolv, iproute2 and util-linux. There is no gtk4-layer-shell dependency.

make build
doas make install

PREFIX defaults to /usr; DESTDIR stages the payload. Installation copies the prebuilt executable, runit definition and daemon-configuration templates. It does not restart network services. Authored runit policy is preserved, with a replacement supplied for review. INSTALL_RUNIT=0 omits runit integration for other distribution packages.

Service and activation

The runit service runs atrium-network service as root. Its socket is /run/atrium-network/control.sock, mode 0660, owned by root:network. GUI and CLI processes run as the user. Membership in network grants system-wide network administration, including access to saved credentials.

An administrator must create the group if absent, add the intended user, and enable /etc/sv/atrium-network under /var/service. A fresh login is needed for changed group membership. The run script waits for D-Bus and dhcpcd.

Inspect atrium-network connections and confirm adoption of the existing physical profile before running doas make configure-services. That operation prepares service-owned wpa_supplicant and dhcpcd activation for the next boot. Restarting network daemons can interrupt remote access; use a verified rollback path when the connection carries the session.

Persistent profiles and bundled credentials live under /etc/atrium-network/profiles, with a private directory and mode-0600 files. The service adopts saved supplicant networks; it retains a backup before removing their represented network blocks from the daemon’s file. dhcpcd uses -M --inactive so the service selects active adapters.

Connections and commands

Wi-Fi supports open, WPA2, WPA3, hidden and enterprise configurations. Ethernet supports multiple adapters. Physical profiles include addressing, DNS, routes, metric and automatic connection priority.

atrium-network
atrium-network status --json
atrium-network watch --json
atrium-network connections
atrium-network scan wlan0
atrium-network import ./office.conf
atrium-network import ./travel.ovpn
atrium-network connect office
atrium-network disconnect office
atrium-network reconnect office

WireGuard imports wg-quick configuration and reports each tunnel’s handshake age and transfer totals. Externally started tunnels are visible; atrium-network adopt INTERFACE imports /etc/wireguard/INTERFACE.conf without restarting the tunnel. An active interface alone does not prove a completed handshake.

OpenVPN uses its management socket for state, credential prompts and shutdown. The service applies and removes VPN DNS through openresolv, including cleanup after an unclean OpenVPN exit. Unsupported executable hooks, plugins and configuration includes are rejected explicitly.

Saved changes apply on reconnect. autoconnect controls automatic activation; start_at_boot permits activation before a desktop client connects. Interactive credentials leave a connection pending until answered. Profile exports can contain credentials and must remain private.

Verification boundary

The repository’s integration tier uses disposable namespaces with real network tools. GUI checks use an isolated compositor. Physical WPA2/WPA3/EAP authentication, adapter hotplug, suspend/resume and an installed-system reboot require hardware acceptance. See the repository README for the complete API, activation procedure and verification requirements.

atrium-portal

The xdg-desktop-portal backend that makes screen sharing work: OBS, browsers, Signal, anything that asks the portal for a screen cast.

App → xdg-desktop-portal → atrium-portal → atrium (IPC: StartCast) → PipeWire stream → App

atrium-portal implements org.freedesktop.impl.portal.ScreenCast. It is D-Bus activated when an app first asks, shows a GTK4 picker for the monitor or window, sends StartCast to the compositor over IPC, waits for the pw_node_id on the event stream, and hands that node back to the main portal. Everything else (file chooser, settings, access) is left to xdg-desktop-portal-gtk. There is no Mutter-compatible D-Bus surface anywhere.

Build and install

From the portal repository, run make build as the ordinary user, then doas make install. Build dependencies include Rust/Cargo, Make, a C linker, pkg-config and GTK4 development libraries. Keep the compositor checkout beside the portal checkout: the portal uses its atrium-ipc crate as a source dependency. The installation renderer requires Python 3. Runtime needs GTK4, PipeWire, a session D-Bus, xdg-desktop-portal and the GTK fallback backend.

The default prefix is /usr; PREFIX, DATADIR and DESTDIR support another layout and staging. Installation copies the prebuilt executable, portal descriptor and a D-Bus activation file naming the selected executable path. It does not rebuild or update the compositor or Network application.

Configuration

~/.config/xdg-desktop-portal/portals.conf:

[preferred]
default=gtk
org.freedesktop.impl.portal.ScreenCast=atrium

The compositor’s make install also installs /usr/share/xdg-desktop-portal/atrium-portals.conf, which applies when XDG_CURRENT_DESKTOP=atrium.

The picker floats by rule (match app-id="atrium-portal", in the default config).

Hybrid GPUs

Capture supports DMA-BUF and shared-memory buffers. Intel and NVIDIA may expose incompatible DMA-BUF modifiers when compositor and consumer use different GPUs. To isolate that negotiation, force new casts to shared memory:

debug {
    disable-pipewire-dmabuf
}

Reload the configuration and start a new share; existing streams do not change. Shared memory adds GPU readback and a CPU copy per frame.

An explicit render device can instead align compositor DMA-BUF allocation with the consumer:

debug {
    render-drm-device "/dev/dri/renderD129"
}

Find the actual node with ls -l /dev/dri/by-path/; node numbers are machine-specific. Changing the render device requires a compositor restart. It is not a universal requirement for hybrid-GPU capture.

Debugging

  • Log: ~/.local/state/atrium/atrium-portal.log.
  • Capabilities should read 3/7, not 0/0:
gdbus call --session --dest=org.freedesktop.portal.Desktop \
  --object-path /org/freedesktop/portal/desktop \
  --method org.freedesktop.DBus.Properties.GetAll org.freedesktop.portal.ScreenCast
  • atrium msg casts lists the compositor’s active streams.

atrium-greet

A Rust GTK4 login frontend for greetd. Its restricted Atrium instance displays the greeter; greetd and PAM own authentication and user-session launch. The user’s compositor is separate from the greeter’s display and configuration.

The chooser discovers installed Wayland .desktop session entries under its own prefix and the standard system directories. It supports visible and secret PAM prompts, notices, cancellation and retry. No separate Atrium Session package is needed to select a desktop.

Build and activation

Dependencies include Rust/Cargo, GTK4, Atrium, greetd, Linux-PAM with pam_rundir, seatd and the standard shadow account utilities.

make build
doas make install

PREFIX defaults to /usr. Installation copies prebuilt programs and supplies absent PAM/compositor configuration while preserving authored files. DESTDIR stages payloads without host account changes.

Selecting this greeter is explicit:

doas make prepare
doas make activate

prepare creates or reuses _greeter and adds _seatd membership. activate selects the frontend in /etc/greetd/config.toml, preserving existing terminal and PAM selection. Neither operation restarts greetd or signals the current desktop. Selection takes effect when greetd next starts, such as at a deliberate reboot.

The shipped greetd example enables source_profile so /etc/profile and the user’s .profile supply login PATH and locale. Activation preserves the administrator’s existing profile policy.

VM verification exercises real greetd/PAM, desktop startup and logout. Physical VT/DRM/seat transfer and installation migration require separate acceptance. Login lifetime and failure recovery remain responsibilities of greetd/PAM and system-service supervision. See the Greeter repository.

atrium-power

An independent Rust GTK4 power window and CLI for Void Linux with runit, seatd and doas. It works without Atrium Shell.

atrium-power
atrium-power check
atrium-power poweroff
atrium-power reboot
atrium-power sleep
atrium-power lock

Shutdown and reboot use the distribution’s orderly shutdown command. Sleep starts swaylock, waits for secure-lock readiness, holds it against unlocking during suspend, and invokes zzz -z. On resume the screen remains locked. A failed locker prevents sleep.

When a Secret Service provider is present, Lock and Sleep lock its collections and verify their locked state first. Failure prevents the request. No provider is activated when none is present. Screen unlock does not automatically unlock a keyring.

Installation and authorization

Build dependencies include Rust/Cargo, pkg-config and GTK4 development libraries. Runtime needs GTK4, doas, swaylock, runit and Void’s shutdown/zzz utilities.

make build
doas make install

PREFIX defaults to /usr; DESTDIR stages the prebuilt payload. Installation supplies a desktop entry and doas policy example, but grants no permissions and changes no personal configuration. Review the installed /usr/share/atrium-power/doas.conf.example, substitute the intended account and add its exact rules to the existing doas configuration. The executable and parent directories must be root-owned and not user-writable.

To open the confirmation window from Atrium, add bindings inside the existing binds block:

Mod+Shift+E { spawn "/usr/bin/atrium-power"; }
XF86PowerOff { spawn "/usr/bin/atrium-power"; }

A system acpid handler must not also shut down on the same key event. Power does not install physical-event handlers or lid policy.

Authorization requires an active desktop on the Linux VT; SSH/TTY and inactive-desktop callers are rejected. Known other logins require explicit confirmation for shutdown/reboot and prevent sleep. Greeter power actions, hibernation, login1 inhibitors and multi-seat policy are unavailable. Prefix changes alone do not port the Void-specific authorization/execution path.

Disposable installed-system verification does not establish physical GPU, lid or suspend/resume acceptance. See the Power repository for policy, installation and verification details.

atrium-keyring

An independent application keyring for one user and one graphical login. Atrium owns the native prompt UI, controls and integration; the pinned oo7 provider owns encrypted storage and the standard Secret Service API. No GNOME Keyring, GCR prompter, KDE service, systemd or elogind is required.

Build and installation

Build dependencies include Rust 1.95 or newer, Cargo, Make, GTK4 development libraries, pkg-config, a C compiler, gettext build tools, curl, tar, patch and sha256sum. The Make build downloads a checksum-verified oo7 archive and applies the maintained integration patch.

make build
doas make install

PREFIX defaults to /usr; use the same path overrides for build and install. DESTDIR stages the payload. Installation copies the prebuilt application, provider, bounded login helper, optional PAM module, desktop entry and integration example. It does not edit PAM, select a provider or start services.

Select and use

Select one Secret Service provider for the graphical session. For the default installation, add this to the compositor configuration:

spawn-at-startup "/usr/bin/atrium-keyring" "start"

The provider inherits the graphical session bus and exits when that bus disconnects. There is no D-Bus activation file or user-wide background service. An existing bus owner is not replaced.

atrium-keyring
atrium-keyring status
atrium-keyring unlock
atrium-keyring lock
atrium-keyring change-password

Automatic login unlock requires deliberate PAM integration. Review the repository’s packaging/integration.example against the effective greetd/PAM stack. Its hooks must remain optional so a keyring fault cannot prevent login. Passwordless login or a login password that differs from the keyring requires manual unlock.

Atrium Power locks Secret Service collections before screen lock and sleep. Direct swaylock invocation bypasses this integration. Screen unlock leaves the keyring locked until it is explicitly unlocked.

Storage and acceptance

Storage is under $XDG_DATA_HOME/atrium-keyring, normally ~/.local/share/atrium-keyring, separate from other providers’ stores. Existing credentials are not imported automatically. Back up the entire directory while the provider is stopped and retain its password; an account-password reset cannot recover encrypted credentials.

Private-bus, PAM and isolated graphical checks do not establish physical login/logout or compatibility with every application’s credential catalogue. See the Keyring repository for activation, recovery and verification details.

Settings

The intended Settings hub discovers and launches independent configuration tools. Compositor configuration, window policy, shell appearance and widget settings have separate owners. The hub owns navigation, not a global configuration store or the lifetimes of launched programs.

Rust Settings source is preserved under atrium-shell/tools/settings, outside the shell’s default build, test and installation. Its expected executable/assets do not match the current shell installation. It is not a supported installed editor for the current KDL/package composition. Its final repository and shared UI dependency boundary remain undecided.

For current configuration, edit the compositor’s KDL file, the shell’s composition, or the selected widget’s settings. The compositor exposes validated, revision-checked configuration IPC for supported settings. That API does not imply a complete installed Settings application.

Architecture

Atrium is niri with the window-management layer replaced. A Wayland compositor is the display server: GPU rendering, buffer management, input routing, and forty-odd protocols. That is most of the work, and niri’s implementation of it on Smithay is proven, including on NVIDIA hybrid graphics. Where windows go is the part Atrium has different opinions about, and that part is cleanly separable.

The split

atrium
├── compositor core (niri, kept; fixes cherry-picked)
│   ├── src/backend/         DRM/KMS, libinput, GPU rendering, winit and headless backends
│   ├── src/handlers/        Wayland protocol trait implementations
│   ├── src/render_helpers/  rendering pipeline, damage tracking, shaders
│   ├── src/protocols/       layer-shell, foreign-toplevel, screencopy, ext-workspace, ...
│   └── src/utils/           spawning, scaling, signals, transactions
├── layout engine (ours)
│   ├── src/layout/mod.rs         facade: global workspace pool, bring/send/cycle
│   ├── src/layout/workspace.rs   TilingSpace + FloatingSpace per workspace
│   ├── src/layout/tiling_space.rs
│   ├── src/layout/tiling/        TilingLayout trait, five algorithms
│   ├── src/layout/floating.rs
│   └── src/layout/monitor.rs     thin Monitor: output + workspace index
├── bridge (adapted)
│   ├── src/atrium.rs         central state; calls into the layout
│   ├── src/input/            keybind dispatch to layout actions
│   └── src/ipc/              IPC server with workspace-aware commands
├── atrium-config/            KDL config model
└── atrium-ipc/               IPC types (shared with atrium-portal and the shell)

Core abstractions

Layout is a pure function. layout(windows, rect, params) → geometries. The TilingLayout trait encodes exactly that; all five algorithms are stateless and LayoutParams holds the state per workspace. A new algorithm is one file.

A workspace is a container. It owns a TilingSpace (ordered tiles, active algorithm, params), a FloatingSpace, an optional output binding, and per-workspace config overrides. It exists whether or not a monitor shows it.

A monitor is a viewport. Output hardware plus a workspace index. It owns no windows and no layout state, so disconnecting a monitor detaches a workspace with everything intact.

IPC is state plus events. A full snapshot on connect, then change events. Consumers filter client-side.

Animations are per-tile and clock-driven. A shared clock advances once per frame; when nothing animates, the output idles at zero CPU. animations { off } makes everything instant.

Extension is by trait. New algorithm: implement TilingLayout. New window behavior: implement LayoutElement. New event: add to the Event enum.

Data flow

A client creates an xdg_toplevel; the window sits unmapped until its first buffer; rules resolve on app id and title; it lands in the active workspace’s tiling or floating space; arrange() computes every tile; the window receives a configure with its size; it renders at that position. Close reverses it: remove, transfer focus, re-arrange, play the close animation.

A workspace switch snapshots the screen for a crossfade, repoints the monitor, transfers focus, emits WorkspaceActivated, and renders the new workspace over roughly 200 ms.

Hotplug: on connect, prefer the workspace last shown on that output, else the lowest unbound one, compute the working area minus layer-shell exclusive zones, arrange. On disconnect, remember the mapping and detach.

Resource model

StateCPUGPU
Idle desktop0% (epoll sleep)none
Typing in a terminalminimalactive output, damage-tracked
Workspace switchbriefactive output, ~12 frames
Ratio adjustper keystrokeactive output, one frame

Single-monitor actions redraw only the active output.

What Atrium is not

Not a desktop environment (no bar, notifications, lock screen, or launcher inside the compositor). Not a floating window manager (floating is an escape hatch). Not a scrolling window manager. Not tag-based (workspace and window are one-to-one).

GPU recovery

The TTY backend creates robust GL contexts (LOSE_CONTEXT_ON_RESET), polls reset status each frame, and on a detected reset settles for two seconds before replaying GPU device removal/addition. The rebuild recreates rendering resources and output globals while preserving Wayland connections, window state and the dmabuf global. recover-gpu invokes the same path manually.

This path is not a forced hardware reset. A driver call that blocks the compositor loop can prevent both reset detection and the scheduled rebuild. Completion of device replay does not establish that clients visibly resumed. Nested winit checks cannot qualify DRM recovery; real-fault recovery requires driver-specific hardware acceptance. The Smithay dependency pin is recorded in the compositor’s Cargo manifest.

The layout boundary

The interface between src/layout/ and the rest of the compositor. Someone with different layout opinions replaces the layout side and keeps everything else.

LayoutElement

The abstraction that keeps the layout ignorant of Wayland. Defined in src/layout/mod.rs:

  • identity: id(), is_wl_surface(), is_child_of()
  • geometry: size(), buf_loc(), min_size(), max_size()
  • size negotiation: request_size(), expected_size(), sizing_mode()
  • rendering: render(), render_normal(), render_popups()
  • state: set_activated(), set_floating(), set_bounds()
  • transactions: configure_intent(), send_pending_configure(), on_commit()

The layout arranges rectangles. It never touches surfaces, buffers, or protocol types.

The pieces

  • Tile<W> (src/layout/tile.rs): wraps a LayoutElement with border, focus ring, shadow, and animations.
  • FloatingSpace<W> (src/layout/floating.rs): freely positioned tiles.
  • TilingSpace<W> (src/layout/tiling_space.rs): a flat tile list with a pluggable algorithm and per-space params; also per-window maximize and the rearrange animation.
  • Workspace<W> (src/layout/workspace.rs): owns a TilingSpace and a FloatingSpace.
  • Monitor (src/layout/monitor.rs): output plus workspace index.
  • The Layout<W> facade (src/layout/mod.rs): the API the rest of the compositor calls.

The facade’s API

Tiling: focus_next_window, focus_prev_window, focus_master, swap_with_master, swap_next_window, swap_prev_window, cycle_layout, flip_layout, reset_layout, grow_master_ratio, shrink_master_ratio, inc_master_count, dec_master_count, inc_stack_count, dec_stack_count.

General: window add and remove, focus, output management, workspace switching, rendering, interactive move and resize, queries.

Callers

  • src/atrium.rs: rendering, window queries, animation.
  • src/input/mod.rs: action dispatch; the tiling actions are wired here.
  • src/handlers/: window lifecycle.

Tests at the boundary

  • Golden geometry snapshots (src/layout/tests/tiling_geometry.rs) pin the exact tile rectangles for each algorithm with one to six windows.
  • Fixture tests (src/tests/) assert what clients actually receive: configure sizes, bounds, states.
  • check_ops and verify_invariants exercise structural invariants under random operation sequences.

make test runs all of it with clippy at -D warnings.

Relationship to niri

Atrium is a permanent fork of niri, not a tracking branch. Upstream fixes are cherry-picked into the parts that are niri’s; the parts that are Atrium’s own diverge for good.

niri’s: cherry-pick fixes

src/backend/, src/handlers/, src/render_helpers/, src/protocols/, src/utils/. The compositor plumbing. Atrium modifies them only for a bug upstream has not fixed yet, and takes the upstream fix when it lands.

Atrium’s own

src/layout/ (workspace model, TilingLayout, five algorithms), src/ui/, atrium-config/, atrium-ipc/, resources/.

Adapted: touched carefully

src/atrium.rs, src/input/mod.rs, src/ipc/. The bridge between upstream code and the layout. Changes here are surgical: add the action dispatch, do not restructure.

Grafting

Each niri release is triaged commit by commit into four buckets: take (cherry-pick with -x for auditability), adapt (a bug idea that applies to Atrium’s rewritten code, ported by hand), skip (scrolling-layout features, systemd and dinit integration, packaging, CI), or batch. A ledger records the cursor and the standing skips. Selective grafting does not imply that Atrium tracks every current upstream feature or commit.

Smithay

Atrium pins its Smithay fork by revision, including robust-context support for GPU recovery and selected input fixes. The compositor’s Cargo manifest owns the exact pins. A graft that changes the Smithay base must keep the dependency entries consistent and qualify the carried changes.

Names that stay niri’s

Shader uniforms (niri_scale, niri_progress, and the rest) are a public API for custom shaders and are not renamed. Comments citing GitHub issues on niri are historical references and stay. Everything else is atrium: the crate, the Atrium state struct, ATRIUM_* environment variables, ~/.config/atrium/.

Version string

atrium --version identifies the selected executable; atrium msg version queries the running compositor and reports CLI/compositor mismatches. Source builds derive identity from the Cargo package version and commit unless ATRIUM_BUILD_VERSION_STRING supplies an explicit build identity. Do not infer an upstream base or a published release from an example version string.

Default configuration

The annotated default-config.kdl the compositor ships, verbatim. Installed at /usr/share/atrium/default-config.kdl; copy it to ~/.config/atrium/config.kdl to start.

For the installed Rust shell, use spawn-at-startup "atrium-shell" as shown in Build and install. The shell’s composition is a separate file at ~/.config/atrium-shell/config.kdl.

// This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node.
// Atrium inherits most config options from niri upstream:
// https://niri-wm.github.io/niri/Configuration:-Introduction

// Input device configuration.
input {
    keyboard {
        xkb {
            // You can set rules, model, layout, variant and options.
            // For more information, see xkeyboard-config(7).

            // For example:
            // layout "us,ru"
            // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
        }

        // Enable numlock on startup, omitting this setting disables it.
        numlock
    }

    // Next sections include libinput settings.
    // Omitting settings disables them, or leaves them at their default values.
    touchpad {
        tap
        natural-scroll
    }

    mouse {
    }

    trackpoint {
    }

    // Uncomment this to make the mouse warp to the center of newly focused windows.
    // warp-mouse-to-focus

    // Focus windows and outputs automatically when moving the mouse into them.
    // focus-follows-mouse
}

// You can configure outputs by their name, which you can find
// by running `atrium msg outputs` while inside an atrium instance.
// The built-in laptop monitor is usually called "eDP-1".
// Remember to uncomment the node by removing "/-"!
/-output "eDP-1" {
    // Uncomment this line to disable this output.
    // off

    // Resolution and, optionally, refresh rate of the output.
    // Run `atrium msg outputs` to list all outputs and their modes.
    mode "1920x1080@120.030"

    // You can use integer or fractional scale, for example use 1.5 for 150% scale.
    scale 2

    // Transform allows to rotate the output counter-clockwise, valid values are:
    // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
    transform "normal"

    // Position of the output in the global coordinate space.
    // This affects directional monitor actions like "focus-monitor-left", and cursor movement.
    position x=1280 y=0
}

// User startup belongs here: shell, audio and personal applications.
// Uncomment the programs you want Atrium to start.
// spawn-at-startup "atrium-shell-native"
// spawn-at-startup "pipewire"
// spawn-sh-at-startup "wl-paste --watch cliphist store"
// Commands run once per compositor start, not on config reload.
// They run independently; their order here does not establish readiness.

// Settings that influence how windows are positioned and sized.
layout {
    // Default tiling algorithm for new workspaces.
    // Options: "master-stack", "monocle", "centered-master", "grid", "fibonacci"
    // default-algorithm "master-stack"

    // Set gaps around windows in logical pixels.
    gaps 8

    // Widths used by "switch-preset-window-width" for floating windows
    // (not bound by default). Tiled sizes come from the layout algorithm.
    preset-window-widths {
        proportion 0.33333
        proportion 0.5
        proportion 0.66667
    }

    // Initial width requested from new tiled clients before layout placement.
    default-window-width { proportion 0.5; }
    // If you leave the brackets empty, the windows themselves will decide their initial width.
    // default-window-width {}

    // You can change how the focus ring looks.
    focus-ring {
        // How many logical pixels the ring extends out from the windows.
        width 4

        // Color of the ring on the active monitor.
        active-color "#7fc8ff"

        // Color of the ring on inactive monitors.
        inactive-color "#505050"
    }

    // You can also add a border. It's similar to the focus ring, but always visible.
    border {
        // The settings are the same as for the focus ring.
        // If you enable the border, you probably want to disable the focus ring.
        off

        width 4
        active-color "#ffc87f"
        inactive-color "#505050"

        // Color of the border around windows that request your attention.
        urgent-color "#9b0000"
    }

    // You can enable drop shadows for windows.
    shadow {
        // Uncomment the next line to enable shadows.
        // on

        softness 30
        spread 5
        offset x=0 y=5
        color "#0007"
    }
}

// Workspaces (10 fixed, spectrwm-style).
// Named workspaces can set display properties and layout overrides:
//   workspace "media" {
//       label "Media"
//       icon "~/.local/share/icons/Sardi/scalable/apps/multimedia.svg"
//       show-label true
//       show-icon true
//
//       open-on-output "DP-1"
//       layout {
//           default-algorithm "monocle"
//           gaps 0
//       }
//   }
//
// label:      Display text for bars/IPC (defaults to workspace name).
// icon:       Path to an SVG icon file.
// show-label: Whether to expose the label via IPC (default: true if label/name set).
// show-icon:  Whether to expose the icon via IPC (default: true if icon set).

hotkey-overlay {
    // Show keybind help at startup. Press F1 to show again.
    // Uncomment to not show it at startup:
    // skip-at-startup
}

// Alt+Tab immediately cycles focus through tiled windows on the current workspace.
// The separate recent-windows switcher spans workspaces. Its default bindings
// include Mod+Shift+Tab and Alt+Grave / Alt+Shift+Grave for the same app.
// Uncomment to disable that switcher:
// recent-windows {
//     off
// }

// Which input events wake monitors after power-off-monitors.
// Absent = all events wake (default). Empty block = nothing wakes.
// monitor-wake {
//     key-press
//     mouse-click
// }

// Uncomment this line to ask the clients to omit their client-side decorations if possible.
// After enabling or disabling this, you need to restart the apps for this to take effect.
// prefer-no-csd

// You can change the path where screenshots are saved.
// {name} expands to the capture subject: the window's app id, the output name,
// or "desktop" for all-outputs captures. The rest is strftime.
screenshot-path "~/Pictures/Screenshots/{name} %Y-%m-%d %H-%M-%S.png"

// Uncomment to pipe every screenshot into an annotation tool instead of saving it
// directly. The tool receives the PNG on stdin and owns saving/copying from there.
// screenshot-annotator "satty" "--filename" "-"

// What a client-requested minimize does (the iconify keybind always iconifies).
// An iconified window stays on its workspace but leaves the layout until restored.
//   "ignore"                 drop the request; the window stays put (default)
//   "iconify"                honor it natively
//   "send-to-workspace" 5    move the window to workspace 5 instead
// Also available per window rule: iconify-action "iconify"
// iconify-action "ignore"

// Animation settings.
animations {
    // Uncomment to turn off all animations.
    // off

    // Slow down all animations by this factor. Values below 1 speed them up instead.
    // slowdown 3.0
}

// Window rules let you adjust behavior for individual windows.

// Work around WezTerm's initial configure bug.
window-rule {
    match app-id=r#"^org\.wezfurlong\.wezterm$"#
    default-window-width {}
}

// Open the Firefox picture-in-picture player as floating by default.
window-rule {
    match app-id=r#"firefox$"# title="^Picture-in-Picture$"
    open-floating true
}

// Float the atrium-portal screen share picker.
window-rule {
    match app-id="atrium-portal"
    open-floating true
}

binds {
    // Keys consist of modifiers separated by + signs, followed by an XKB key name.
    // "Mod" is Super on a TTY, Alt when running nested in winit.

    // Help — shows keybind overlay. Press any key to dismiss.
    F1 { show-hotkey-overlay; }

    //
    // === Session ===
    //
    Mod+Shift+E { quit; }
    Ctrl+Alt+Delete { quit; }
    Mod+Shift+R { spawn "atrium" "msg" "action" "load-config-file"; }
    Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }

    //
    // === Applications ===
    //
    // Set your preferred terminal, launcher, and browser here.
    Mod+Return { spawn "alacritty"; }
    Mod+R { spawn "fuzzel"; }

    //
    // === Window management ===
    //
    Mod+Q repeat=false { close-window; }
    Mod+Shift+Q repeat=false { kill-window; }

    // Focus
    Alt+Tab       { focus-next-window; }
    Shift+Alt+Tab { focus-prev-window; }
    Mod+Tab       { focus-master; }
    Mod+U         { focus-urgent; }

    // Swap
    Mod+Slash     { swap-with-master; }
    Mod+Shift+J   { swap-next-window; }
    Mod+Shift+K   { swap-prev-window; }

    // Layout algorithm cycling
    Mod+BracketRight { cycle-layout; }
    Mod+BracketLeft  { reset-layout; }
    Mod+Backslash    { flip-layout; }

    // Master area tuning
    Mod+L     { grow-master-ratio; }
    Mod+H     { shrink-master-ratio; }
    Mod+Comma  { inc-master-count; }
    Mod+Period { dec-master-count; }
    Mod+Shift+Comma  { inc-stack-count; }
    Mod+Shift+Period { dec-stack-count; }

    // Floating / fullscreen / maximize
    Mod+F       { toggle-window-floating; }
    Mod+Shift+F { fullscreen-window; }
    Mod+M       { toggle-maximize; }
    Mod+I       { iconify-window; }
    Mod+Shift+I { uniconify-window; }

    //
    // === Workspaces ===
    //
    Mod+1 { focus-workspace 1; }
    Mod+2 { focus-workspace 2; }
    Mod+3 { focus-workspace 3; }
    Mod+4 { focus-workspace 4; }
    Mod+5 { focus-workspace 5; }
    Mod+6 { focus-workspace 6; }
    Mod+7 { focus-workspace 7; }
    Mod+8 { focus-workspace 8; }
    Mod+9 { focus-workspace 9; }
    Mod+0 { focus-workspace 10; }

    // Send window to workspace (stay on current workspace)
    Mod+Shift+1 { move-window-to-workspace 1; }
    Mod+Shift+2 { move-window-to-workspace 2; }
    Mod+Shift+3 { move-window-to-workspace 3; }
    Mod+Shift+4 { move-window-to-workspace 4; }
    Mod+Shift+5 { move-window-to-workspace 5; }
    Mod+Shift+6 { move-window-to-workspace 6; }
    Mod+Shift+7 { move-window-to-workspace 7; }
    Mod+Shift+8 { move-window-to-workspace 8; }
    Mod+Shift+9 { move-window-to-workspace 9; }
    Mod+Shift+0 { move-window-to-workspace 10; }

    // Send window to workspace and follow it
    Mod+Ctrl+1 { move-window-to-workspace 1 focus=true; }
    Mod+Ctrl+2 { move-window-to-workspace 2 focus=true; }
    Mod+Ctrl+3 { move-window-to-workspace 3 focus=true; }
    Mod+Ctrl+4 { move-window-to-workspace 4 focus=true; }
    Mod+Ctrl+5 { move-window-to-workspace 5 focus=true; }
    Mod+Ctrl+6 { move-window-to-workspace 6 focus=true; }
    Mod+Ctrl+7 { move-window-to-workspace 7 focus=true; }
    Mod+Ctrl+8 { move-window-to-workspace 8 focus=true; }
    Mod+Ctrl+9 { move-window-to-workspace 9 focus=true; }
    Mod+Ctrl+0 { move-window-to-workspace 10 focus=true; }

    // Cycle workspaces (occupied only)
    Mod+Right { ws-next; }
    Mod+Left  { ws-prev; }

    // Cycle workspaces (all, including empty)
    Mod+Up   { ws-next-all; }
    Mod+Down { ws-prev-all; }

    // Send window to next/prev workspace
    Mod+Shift+Right { ws-next-move; }
    Mod+Shift+Left  { ws-prev-move; }

    //
    // === Monitors ===
    //
    Mod+N { focus-monitor-next; }
    Mod+Shift+N { move-window-to-monitor-next; }

    //
    // === Pointer ===
    //
    // Free the mouse from a game's lock or confinement without leaving the window;
    // a click hands it back.
    Ctrl+Down { release-pointer; }

    // Scroll wheel workspace switching
    Mod+WheelScrollDown cooldown-ms=150 { ws-next-all; }
    Mod+WheelScrollUp   cooldown-ms=150 { ws-prev-all; }

    //
    // === Media keys ===
    //
    XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"; }
    XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"; }
    XF86AudioMute        allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
    XF86AudioMicMute     allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }

    XF86MonBrightnessUp   allow-when-locked=true { spawn "brightnessctl" "set" "+10%"; }
    XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "10%-"; }

    //
    // === Screenshots ===
    //
    Print { screenshot; }
    Shift+Print { screenshot-screen; }
    Alt+Print { screenshot-all; }
    Ctrl+Print { screenshot-window; }

    //
    // === Monitor power ===
    //
    Mod+Shift+X { power-off-monitors; }
    Mod+Ctrl+X  { power-on-monitors; }
}

Security policy

Report vulnerabilities privately to security@atrium-project.org. Do not open a public issue for anything with security impact.

Scope: every repository in the atrium organization, including the compositor, shell, widget collection, desktop tools, package templates and this site. Vulnerabilities in upstream dependencies such as niri, Smithay, oo7 or wpa_supplicant go to those projects; tell us as well if Atrium’s use of them makes the impact worse.

What to send: the affected component and version or commit, steps to reproduce or a proof of concept, what an attacker gains, and whether the report is already public. Plain email is fine; ask for a key if you need encryption.

What happens next: acknowledgement within 3 business days. A confirmed vulnerability gets a fix on master, a CVE requested through MITRE where one applies, and credit in the release notes unless you prefer otherwise. We ask for 90 days from acknowledgement before public disclosure, shorter by agreement if the fix ships sooner.

Safe harbour: good-faith research against your own installation is welcome. Do not test systems you do not own, and do not access other people’s data.

Machine-readable: atrium-project.org/.well-known/security.txt.