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

niri

niri is a scrollable-tiling Wayland compositor: windows are arranged in columns on an endless strip that scrolls sideways, and workspaces are stacked vertically.

Login screengreetd
Terminalkitty
BarWaybar
Launchersfuzzel, nwggrid, d77run
Notificationsdunst
Lock screenswaylock, with Super + T or after 5 minutes idle; screen off after 10
BrowserBrave

Where to change things

WhatFile
keys, programs started with the session, keyboard, outputs, layout~/.config/niri/config.kdl
the bar~/.config/waybar/
fuzzel launcher and power menu~/.config/fuzzel/
lock screen~/.config/swaylock/config

niri applies config.kdl as soon as it is saved. The originals are in /etc/skel/.config/.

Programs started with the session are the spawn-at-startup lines in config.kdl.

Keys

Super is the modifier (Mod).

KeysAction
Super + Returnterminal
Super + Dfuzzel (application launcher)
Super + Nnwggrid (application grid)
Super + Od77run
Super + Bweb browser
Super + Pfile manager (PCManFM)
Super + Sdrop-down terminal
Super + Tlock screen
Super + Xpower menu
Super + Qclose window
Super + Shift + Ooverview of all windows
Super + 1 … 9go to workspace
Super + Ctrl + 1 … 9move column to workspace
Super + Rnext preset column width
Super + Fmaximize the column
Super + Shift + Ffull screen
Super + Ccenter the column
Super + , / Super + .take the next window into the column / put it out
Super + H/J/K/L or arrowsfocus column left / window down / up / column right
Super + Ctrl + H/J/K/L or arrowsmove column or window
Super + Shift + H/J/K/L or arrowsfocus another monitor
Super + U / Super + Iworkspace below / above
Super + Ctrl + U / Super + Ctrl + Imove column to the workspace below / above
Super + mouse wheelchange workspace
Super + Shift + 7list of shortcuts

Volume and microphone keys work, also on the lock screen.

Idle

After 5 minutes without input the screen locks (swaylock), after 10 it turns off and comes back on with any input, and it always locks before the computer suspends. This is /usr/bin/screenlock, started with the session.

On installations made from ISOs built before 16 October 2026 the screen locks but never turns off. To fix it, install wlopm:

sudo xbps-install -S wlopm

and, in /usr/bin/screenlock, replace both swaymsg "output * power off" and swaymsg "output * power on" with wlopm --off '*' and wlopm --on '*'.

Keyboard layout

In config.kdl:

input {
    keyboard {
        xkb {
            layout "pt"
        }
    }
}

Wallpaper

The wallpaper is set at start-up by sww, which shows ~/Wallpaper/background2.png with swww. To use another image now:

swww img ~/Wallpaper/<image>