Quick Start with DankMaterialShell
For the easiest setup experience, install niri with DankMaterialShell, which provides a complete desktop environment including panels, notifications, and system controls.- Fedora
- Arch Linux
- Ubuntu 25.10+
Install packages
Run the commands above for your distribution to install niri and DankMaterialShell.
Log out and select Niri
Log out of your current session, select “Niri” in your display manager, and log back in.If not using a display manager, run
niri-session on a TTY.Manual Installation
For more control over your setup, you can install niri from distribution packages or build it yourself.Distribution Packages
niri is available in several package repositories:- Fedora: COPR repository and nightly COPR
- NixOS: niri-flake
- Debian-based: pacstall package
- Other distributions: Check Repology for more options
After installing from your distribution, continue to the First Launch section.
Building from Source
To build niri yourself, you’ll need Rust and various system dependencies.Install Rust
Install the latest stable Rust from rustup.rs:
Install files manually
Copy the built files to their destinations:
| File | Destination |
|---|---|
target/release/niri | /usr/local/bin/ |
resources/niri-session | /usr/local/bin/ |
resources/niri.desktop | /usr/local/share/wayland-sessions/ |
resources/niri-portals.conf | /usr/local/share/xdg-desktop-portal/ |
resources/niri.service | /etc/systemd/user/ |
resources/niri-shutdown.target | /etc/systemd/user/ |
Make sure the path to
niri in niri.service matches your installation location (defaults to /usr/bin/niri).First Launch
Start niri
From a display manager: Log out and select “Niri” from your display manager (like GDM).From a TTY: Run
niri-session (for systemd/dinit) or niri --session (for other init systems).Windowed mode: Run niri inside an existing desktop session for testing (note: this is mainly for development and may have hotkey issues).Test basic functionality
Try these default hotkeys:
- Super + T: Open terminal (Alacritty)
- Super + D: Open application launcher (fuzzel)
- Super + Shift + E: Exit niri
When running in windowed mode, the Mod key is Alt instead of Super.
Install essential software
niri requires additional software for full desktop functionality. See the Essential Software page for required components like notification daemons and portals.
Configure niri
Check the Configuration documentation to customize niri to your preferences. The config file is located at
~/.config/niri/config.kdl.Platform-Specific Notes
NVIDIA GPUs
NVIDIA GPUs
NVIDIA drivers have a known issue with high VRAM usage. Apply the manual fix documented in the NVIDIA guide.If you experience a black screen:
- Update NVIDIA drivers to a version that supports GBM
- Enable kernel modesetting by adding
nvidia-drm.modeset=1to your kernel command line
Asahi, ARM, and kmsro devices
Asahi, ARM, and kmsro devices
If you get a black screen on TTY startup, niri may have detected the wrong render device.First, list available devices:Then add the render device to your config at Try different
~/.config/niri/config.kdl:renderD* or card* devices if the issue persists.NixOS
NixOS
Ensure your system mesa version matches the niri mesa version to avoid black screen issues.On Intel graphics, you may need the workaround described in the NixOS wiki.Use the community-maintained flake:On non-NixOS systems, use NixGL:
Virtual Machines
Virtual Machines
Make sure to enable 3D acceleration in your VM settings for niri to work properly.
Desktop Environments
Several desktop environments officially support or work well with niri:LXQt
Official niri support with complete desktop integration
XFCE
Many components work on Wayland, including with niri
Quickshell
Complete desktop shells like DankMaterialShell and Noctalia
COSMIC
Run COSMIC session with niri using cosmic-ext-extra-sessions
Next Steps
Essential Software
Set up notification daemons, portals, and authentication agents
Default Hotkeys
Learn the default keyboard shortcuts for window management
Configuration
Customize niri to match your workflow
Xwayland
Set up X11 application support