Most tiling compositors ask you to learn a layout algorithm and then live inside it. Niri does something different: it arranges every workspace as a single infinite row of columns that scrolls sideways, and you move through it instead of rearranging it. You never resize a window to make room for another one; you scroll until the window you want is on screen. Once the model clicks, going back to a grid feels like fighting your own desktop.
Niri is written in Rust, targets Wayland only, and has matured into a serious daily driver rather than a curiosity. This tutorial installs it on Arch and Fedora, builds it from source, and then walks through the parts of ~/.config/niri/config.kdl you actually need to touch: the column layout, the keybinds, a Waybar top bar, Xwayland for legacy apps, and a login session under greetd.
What the scrolling model changes
In a classic tiler you juggle master and stack areas, and open a fourth window and the first three shrink. Niri treats the workspace as a horizontal strip of columns; each column holds one or more stacked windows, and you pan left and right along the strip. Opening a window appends a column to the right, so your existing layout never gets trampled.
The practical payoff is predictability. A terminal stays a terminal width, a browser stays a browser width, and Mod+WheelScrollDown slides the whole row. It feels closer to a phone home screen or a video timeline than to a traditional tiling grid, and it scales cleanly to ultrawide monitors where a fixed grid wastes pixels.
Install niri on Arch, Fedora or from source
Niri is packaged in both major rolling and point-release families, so reach for the repo package first. Only build from source if your distro lags behind a feature you need.
- Arch Linux: install niri and the Xwayland helper straight from the official repositories.
sudo pacman -Syu niri xwayland-satellite - Fedora: enable the maintainer’s COPR and install the package.
sudo dnf copr enable yalter/niri sudo dnf install niri xwayland-satellite - Build from source (any distro): install the build dependencies, then compile with Cargo.
sudo dnf install gcc clang libudev-devel libgbm-devel libxkbcommon-devel \ wayland-devel libinput-devel dbus-devel systemd-devel libseat-devel \ pipewire-devel pango-devel cairo-gobject-devel libdisplay-info-devel cargo build --release sudo install -Dm755 target/release/niri /usr/local/bin/niri - Log in: after a fresh install, log out, pick Niri in your display manager and log back in. Without a display manager, run
niri-sessionfrom a TTY.
Nothing about the install is exotic, but resist building with --all-features: some Cargo features are development-only and one of them collects profiling data into memory until you run out of it. The distro packages already pick the right set.

Your first config: column layout and keybinds
Niri reads ~/.config/niri/config.kdl and reloads it live — save the file and the change is on screen immediately. If the file is missing, niri writes a default one for you, and that default is the right starting point because binds are not filled in automatically. Run niri validate to catch syntax errors before you restart your session.
The layout block is where the scrolling model is tuned. Set the gaps, decide when a focused column centres itself, and define the widths that Mod+R cycles through:
layout {
gaps 16
center-focused-column "on-overflow"
preset-column-widths {
proportion 0.33333
proportion 0.5
proportion 0.66667
}
default-column-width { proportion 0.5; }
focus-ring {
width 4
active-color "#7fc8ff"
inactive-color "#505050"
}
}
The binds block is the muscle memory. The default config uses Mod, which maps to Super on a real TTY, so these bindings will not collide with a host compositor when you test niri nested in a window:
binds {
Mod+T { spawn "alacritty"; }
Mod+D { spawn "fuzzel"; }
Mod+Q { close-window; }
Mod+Left { focus-column-left; }
Mod+Right { focus-column-right; }
Mod+J { focus-window-down; }
Mod+K { focus-window-up; }
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
Mod+Shift+E { quit; }
}
Autostart lives at the top level of the file. Add the launchers and bars you want niri to start for you:
spawn-at-startup "swaybg" "-i" "/usr/share/backgrounds/niri.jpg"
spawn-at-startup "waybar"

config.kdl se recarga en caliente: guardar el archivo aplica los cambios al instante, sin reiniciar sesión.Waybar, Xwayland, portals and greetd
Niri ships no bar of its own, and that is deliberate — it is a compositor, not a desktop. Waybar is the common choice: add spawn-at-startup "waybar" and it renders a bar with the workspace and window modules. If you also install a desktop shell that brings its own bar, expect two bars on screen until you remove the duplicate spawn-at-startup line or stop the second one with pkill waybar.
For X11 applications you do not need to wrestle with Xwayland by hand. Since version 25.08 niri integrates with xwayland-satellite out of the box: install version 0.7 or newer, keep it in $PATH, and niri creates the X11 socket, exports $DISPLAY and launches the satellite on demand. Steam, Discord and most older games just work; apps that demand absolute window coordinates still need a nested compositor such as labwc.
Desktop portals are what make screen sharing, file pickers and screenshots behave. Install xdg-desktop-portal-gnome and xdg-desktop-portal-gtk alongside niri; without them a portal-aware app has nothing to talk to. Finally, if you want a graphical login instead of dropping straight to a shell, configure a greetd session that launches niri-session — that gives you a display-manager experience without pulling in a full desktop environment.
| Install method | Command | Best for |
|---|---|---|
| Arch repos | pacman -S niri |
Rolling, always current |
| Fedora COPR | dnf copr enable yalter/niri |
Fedora Workstation |
| From source | cargo build --release |
Latest git features |
What changes for you
Niri is the first tiling compositor in a while that changes the interaction model rather than the memory of it, and that is the whole reason to try it. If you spend your day in a terminal, an editor and a browser, the sideways row keeps all three at a usable width without you ever dragging a splitter.
- Ultrawide and laptop users: the scrolling model stops you wasting horizontal space.
- Wayland holdouts on X11 apps:
xwayland-satellitehides the mess behind an automatic socket. - The cautious: test niri nested in a window from your current session before you commit your login to it.
Do not install it by hand if your distro already packages it — the repo build tracks the release you can actually get help with. Set up config.kdl, add Waybar and the portals, switch greetd over to niri-session on a spare machine first, and only then make it your login. Once the scroll feels natural, the grid will feel like a step backwards.
Sources
- niri wiki — Getting Started: paquetes por distro y requisitos de Xwayland.
- niri wiki — Configuration: Introduction: sintaxis KDL y recarga en caliente de
config.kdl. - niri wiki — Configuration: Layout: opciones de
layout {}y anchos predefinidos. - niri wiki — Xwayland: integración automática con
xwayland-satellite. - GitHub — YaLTeR/niri: repositorio y notas de versión.





Leave a Reply