Larch
User guide

Keyboard shortcuts

Every binding configured in niri, organized by what it does

Mod is the Super (Windows) key, niri's default.

A lot of this is vim-flavored: H/J/K/L map to left/down/up/right the same way they do in vim, and the pattern repeats at every scale, moving focus between windows, jumping between workspaces, moving to a different monitor, just with a heavier modifier combo stacked on top each time you go up a level. J/K are a little smarter than a straight vim mapping: with more than one window stacked in the focused column, they move focus between those windows; with just one window in the column, there's nowhere left to move within it, so they switch workspace instead.

Launching things

ShortcutAction
Mod+ReturnOpen a terminal (kitty)
Mod+EOpen the file manager (Dolphin)
Alt+SpaceToggle the app launcher
Mod+VToggle the clipboard history panel
Mod+Alt+LLock the screen

Window management

ShortcutAction
Mod+CClose the focused window
Mod+Left / Mod+HFocus the column to the left
Mod+Right / Mod+LFocus the column to the right
Mod+DownFocus the window below in the column
Mod+UpFocus the window above in the column
Mod+Ctrl+Left / Mod+Ctrl+HMove the focused column left
Mod+Ctrl+Right / Mod+Ctrl+LMove the focused column right
Mod+Ctrl+DownMove the focused window down within its column
Mod+Ctrl+UpMove the focused window up within its column
Mod+Home / Mod+EndFocus the first / last column
Mod+Ctrl+Home / Mod+Ctrl+EndMove the column to the first / last position
Mod+BracketLeft / Mod+BracketRightConsume the window into the column to the side, or expel it if it's already in one
Mod+CommaConsume a window from the right into the bottom of the focused column
Mod+PeriodExpel the bottom window from the focused column
Mod+RCycle preset column widths
Mod+Shift+RCycle preset window heights
Mod+Ctrl+RReset window height
Mod+Ctrl+FExpand the column to the available width
Mod+Shift+FFullscreen the focused window
Mod+Ctrl+CCenter the visible columns
Mod+Minus / Mod+EqualShrink / grow the column width by 10%
Mod+Shift+Minus / Mod+Shift+EqualShrink / grow the window height by 10%
Mod+Shift+VToggle floating for the focused window
Mod+WToggle tabbed display for the column

Workspace management

ShortcutAction
Mod+JWith more than one window in the column, focus the one below. With just one window, focus the workspace below instead
Mod+KWith more than one window in the column, focus the one above. With just one window, focus the workspace above instead
Mod+Ctrl+JMove the window down, or to the workspace below
Mod+Ctrl+KMove the window up, or to the workspace above
Mod+Page_Down / Mod+UFocus the workspace below
Mod+Page_Up / Mod+IFocus the workspace above
Mod+Ctrl+Page_Down / Mod+Ctrl+UMove the focused column to the workspace below
Mod+Ctrl+Page_Up / Mod+Ctrl+IMove the focused column to the workspace above
Mod+Shift+Page_Down / Mod+Shift+UMove the whole workspace down
Mod+Shift+Page_Up / Mod+Shift+IMove the whole workspace up
Mod+1 through Mod+9Focus workspace 1 through 9
Mod+Ctrl+1 through Mod+Ctrl+9Move the focused column to workspace 1 through 9
Mod+TabSwitch to the previously focused workspace
Mod+GToggle the workspace overview
Mod+WheelScrollUp / Mod+WheelScrollDownScroll through workspaces
Mod+WheelScrollLeft / Mod+WheelScrollRightFocus the column left / right

Monitor management

Only matters with more than one display connected.

ShortcutAction
Mod+Shift+Left / HFocus the monitor to the left
Mod+Shift+Right / LFocus the monitor to the right
Mod+Shift+Down / JFocus the monitor below
Mod+Shift+Up / KFocus the monitor above
Mod+Shift+Ctrl+Left / HMove the focused column to the monitor on the left
Mod+Shift+Ctrl+Right / LMove the focused column to the monitor on the right
Mod+Shift+Ctrl+Down / JMove the focused column to the monitor below
Mod+Shift+Ctrl+Up / KMove the focused column to the monitor above

Screenshots

ShortcutAction
PrintInteractive screenshot (niri's built-in picker)
Ctrl+PrintScreenshot the whole screen
Alt+PrintScreenshot the focused window
Ctrl+Shift+PrintRegion screenshot into Satty for annotation, saved to ~/Pictures/Screenshots/

The last one runs ~/.config/myscripts/screenshot.sh: grim + slurp for the region select, piped straight into satty for markup, then saved as a timestamped PNG.

Media and hardware keys

These work even when the screen is locked.

ShortcutAction
XF86AudioRaiseVolume / XF86AudioLowerVolumeVolume up / down
XF86AudioMuteMute
XF86AudioMicMute / Mod+MMute the microphone
XF86AudioPlayPlay / pause media
XF86MonBrightnessUp / XF86MonBrightnessDownBrightness up / down

Session

ShortcutAction
Mod+EscapeToggle the keyboard shortcut inhibitor (for remote-desktop apps that need to forward keys as-is)
Mod+Shift+EQuit niri (asks for confirmation)
Ctrl+Alt+DeleteQuit niri (asks for confirmation)
Mod+Shift+PPower off monitors

On this page