niri — Niri + Noctalia, every key and command#
Niri 26.04 (scrolling columns: windows sit in columns on an endless strip, workspaces stack vertically) with
Noctalia 4.7.7 as bar, launcher, notifications, lock screen and wallpaper. Both are wrapped packages built from
modules/features/desktop/niri.nix and noctalia.nix; Rosé Pine Main throughout.
Terminal card: niri-cheat — sections model apps shell windows move resize workspaces media screenshots ipc msg wallpaper settings session fix.
Mod = Super in a real login, Alt when nested via nix run ~/NixDaemon#niri.
model — columns, windows, workspaces#
workspace one per row; Mod+1..9 or the mouse wheel moves between them. Always one empty one at the bottom.
column the unit you scroll through left/right. New windows open as a new column to the right.
window a column holds one or more windows stacked vertically (Mod+J/K moves between them).
overview Mod+O zooms out over every workspace; click or arrow to pick, Mod+O again to leave.
- Nothing is ever "off screen" in a bad way: the strip just scrolls. Mod+H/L to walk it.
- Column widths come from presets (⅓, ½, ⅔); Mod+F maximises one column, Mod+G is true fullscreen.
apps — launch#
Mod+Return kitty
Mod+Shift+Return firefox Mod+Shift+B firefox
Mod+Shift+Alt+B firefox private window
Mod+Shift+F nautilus (new window)
Mod+Shift+O obsidian
Mod+Shift+N kitty running $EDITOR (nano if unset)
shell — Noctalia keys#
Mod+Space launcher (apps; type > for commands) Mod+Alt+Space same
Mod+Ctrl+V launcher → clipboard history (cliphist)
Mod+A control centre (wifi, bluetooth, volume, settings gear)
Mod+Escape session menu (lock / suspend / logout / reboot / shutdown) Mod+Ctrl+P same
Mod+Shift+Escape lock now
Mod+Comma clear notifications
Mod+Ctrl+Space wallpaper picker
right-click the bar Noctalia settings
the blue snowflake left end = launcher, right end = control centre (the NixOS logo, set in noctalia.nix)
windows — focus and state#
Mod+H / Mod+Left focus column left
Mod+L / Mod+Right focus column right
Mod+J / Mod+Down focus window below (same column)
Mod+K / Mod+Up focus window above
Mod+Q close window
Mod+F maximise column (toggle)
Mod+G fullscreen window (toggle)
Mod+Shift+V toggle floating
Mod+O overview
Mod+Shift+/ niri's own hotkey overlay (the full live list)
Focus follows the mouse.
move — rearrange#
Mod+Shift+H / Shift+Left move column left
Mod+Shift+L / Shift+Right move column right
Mod+Shift+J / Shift+Down move window down (within / out of the column)
Mod+Shift+K / Shift+Up move window up
Mod+Shift+1..9 move column to workspace N
Mod+[ stack window into the column on the left (under it)
Mod+] stack window into the column on the right (under it)
(pressed on a stacked window: pops it back out to its own column)
Mod+. pop the bottom window out of the column
Mod+W column as tabs (toggle)
Stacking two windows: focus the right one, Mod+[ — it slides under the left one.
Inside a column, Mod+Shift+J/K reorders them.
resize — width and height#
Mod+Ctrl+H column width −5% Mod+Ctrl+L column width +5%
Mod+Ctrl+J window height −5% Mod+Ctrl+K window height +5%
Mod+R cycle column width ⅓ → ½ → ⅔
Mod+Shift+R cycle window height ⅓ → ½ → ⅔
Mod+= column width ½ (do it on two columns → even side by side)
Mod+Ctrl+R reset window height (do it on each stacked window → even split)
Mod+Ctrl+F stretch column into the free space on screen
Mod+C centre column
workspaces#
Mod+1..9 focus workspace N
Mod+Shift+1..9 move focused column to workspace N
Mod+WheelDown / Up next / previous workspace (150 ms cooldown)
media — hardware keys (also work on the lock screen)#
XF86AudioRaiseVolume / Lower volume ±5% (cap 140%) XF86AudioMute / MicMute toggle
XF86MonBrightnessUp / Down brightness ±5%
XF86AudioPlay / Pause play-pause XF86AudioNext / Prev track
screenshots#
Print select a region → Satty editor (grim + slurp)
Shift+Print whole screen → Satty editor
Ctrl+Print select a region → clipboard
Super+Print choose and remember the screenshot save folder
In Satty: Ctrl+S saves to your screenshot folder; Ctrl+Shift+S opens Save As; Ctrl+C copies; Enter saves and copies. U selects blur; R, then 1, draws a filled black censor box. Screenshots default to ~/Pictures/Screenshots. The Noctalia screenshot button uses the same capture/editor and its selected save folder. screenshot folder changes the persistent default.
screensaver and lock screen#
The NixDaemon terminal screensaver starts after 5 minutes idle. Moving the mouse or pressing a key dismisses it. Noctalia locks at 10 minutes and switches the display off at 20 minutes. The screensaver stops when the lock screen opens.
Use the screensaver bar widget, or niri-screensaver-launch launch / niri-screensaver-launch kill. Noctalia → Plugins → Niri Screensaver controls the logo, animation effects, clock, and idle delay. Its settings remain editable.
Mod+Shift+Escape locks with the matching NixDaemon card. Login uses the graphical ReGreet chooser; select Niri for this desktop. GRUB uses the same logo and colours for boot selection.
screen recording#
Noctalia → Screenshot plugin → Screen Recording selects a region and records an MP4. Screen Recording (with Audio) also captures desktop sound. Open the same panel and press Stop to finish and save the video. The bar icon turns red while recording.
The plugin's Recording Save Folder is persistent (default ~/Videos). From a terminal: screen-record video, screen-record audio, screen-record stop, or screen-record status. Audio uses the current output's monitor, so it records desktop sound rather than the microphone.
ipc — drive Noctalia from a shell#
The wrapped Noctalia is not on PATH yet, so go through the flake:
noct() { nix run ~/NixDaemon#noctalia -- ipc call "$@"; } # put in a zsh file to keep it
noct settings toggle # settings window noct settings openTab <tab>
noct launcher toggle # also: clipboard emoji windows command
noct controlCenter toggle
noct sessionMenu toggle # also: lock lockAndSuspend
noct lockScreen lock
noct notifications toggleHistory # also: toggleDND clear dismissAll
noct idleInhibitor toggle # keep the screen awake enableFor 3600
noct nightLight toggle
noct darkMode toggle # setDark / setLight
noct volume increase # decrease muteOutput muteInput togglePanel
noct brightness set 50
noct wifi toggle # bluetooth toggle airplaneMode toggle
noct powerProfile cycle # set performance|balanced|power-saver
noct media playPause # next previous seekRelative 10
noct bar toggle # hideBar / showBar
noct systemMonitor toggle
noct calendar toggle
noct state all # dump the shell's live state (JSON)
msg — drive Niri from a shell#
niri msg outputs # monitors, modes, scale
niri msg workspaces # list, with the focused one marked
niri msg windows # every window: id, app-id, title, workspace
niri msg focused-window
niri msg pick-window # click a window, get its details (for window rules)
niri msg action <action> [args] # any bindable action, e.g.
niri msg action focus-workspace 3
niri msg action set-column-width 50%
niri msg action switch-preset-column-width
niri msg action spawn -- kitty
niri msg -j windows | jq # JSON output for scripts
niri validate -c file.kdl # check a config file
wallpaper — Rosé Pine#
Wallpapers are in ~/Pictures/Wallpapers/{rose-pine,rose-pine-dark,rose-pine-mid-walls}.
Noctalia's picker (Mod+Ctrl+Space) and Caelestia's on Hyprland both read that folder and its subfolders
(wallpaper.directory in noctalia.nix, wallpaperDir in caelestia.nix).
noct wallpaper toggle # the picker
noct wallpaper random "" # random from the configured folder
noct wallpaper set ~/Pictures/Wallpapers/rose-pine/koi-fish.png "" # any file ("" = all screens)
noct wallpaper get ""
settings — making a change stick#
- A Niri bind or option:
modules/features/desktop/niri.nix→settings(validated at build; a typo failsnix build .#niri). - A Noctalia setting: change it in the GUI (lasts the session only; settings live in the store),
run
dump-noctalia-shell, paste the differing keys intonoctalia.nix→settings. - Then
nh os switch. A running Niri keeps its old config until re-login, or reload it now:
niri msg action load-config-file --path "$(nix eval --raw ~/NixDaemon#niri)/niri-config.kdl"
session — logging in and out#
Laptop ReGreet: choose "Niri" in Session, then log in (remembers the last session).
Mod+Escape → Logout or Mod+Shift+E (niri asks to confirm)
back to Hyprland: log out, pick "Hyprland (UWSM)"
nix run ~/NixDaemon#niri nested test inside another desktop (Alt = Mod)
Caelestia never starts under Niri (its unit is tied to the Hyprland session). Idle: lock at 10 min, screen off at 20, never suspends.
fix — when something is off#
systemctl --user list-units --state=active --no-legend | grep -E 'caelestia|polkit|cliphist|udiskie'
# expect polkit, cliphist, udiskie — and NO caelestia
pkill -f noctalia; niri msg action spawn -- $(nix build --no-link --print-out-paths ~/NixDaemon#noctalia)/bin/noctalia-shell
# restart a crashed/hung bar
journalctl --user -b | grep -i niri # niri's log for this boot
Ctrl+Alt+F2 → log in → nh os rollback # can't log in at all
- "What's new" panel on first login: Noctalia's changelog, dismiss once and it's remembered (
~/.cache/noctalia/shell-state.json).