LanesMac logoLanesMac

niri on Mac

niri keybindings on a Mac

If your fingers know niri, you don't have to relearn them on a Mac. This page takes niri's default binds from its default config.kdl and shows the LanesMac key that does the same thing. niri's Mod key becomes Control-Option (⌃⌥), and H, J, K and L keep working.

By Mansi Gangani · Updated

How do niri's keybindings work on a Mac?

niri doesn't run on macOS, but its keybindings map almost one to one onto LanesMac, a scrolling window manager for Mac. niri binds everything to its Mod key (Super on most setups), and LanesMac uses Control-Option (⌃⌥) instead, because Command shortcuts belong to Mac apps. Focus moves left and right with Mod+H and Mod+L in niri and ⌃⌥H and ⌃⌥L (or the arrow keys) in LanesMac; up and down inside a column with J and K in both. Moving a column, which is Mod+Ctrl plus a direction in niri, is ⌃⌥⇧ plus a direction. Mod+R cycles preset widths in niri and ⌃⌥R does the same in LanesMac. Mod+W shows a column as tabs; in LanesMac it is ⌃⌥⇧T. Workspaces, Mod+1 to 9 in niri, are ⌥1 to 9. Every LanesMac shortcut can be changed in Settings › Shortcuts.

Why Mod becomes ⌃⌥

On Linux, niri's Mod key is usually Super, which most apps leave alone. On a Mac, the matching key is Command, and every Mac app already uses it: ⌘H hides an app, ⌘Q quits it, ⌘W closes a window.

So LanesMac puts its shortcuts on Control-Option (⌃⌥), which Mac apps rarely use. If you want different keys, every action can be rebound in Settings › Shortcuts, and LanesMac warns you when a key is already taken by macOS.

Focus and moving around

niri defaultActionLanesMac
Mod+H / Mod+L (or ← / →)Focus the column left / right⌃⌥H / ⌃⌥L (or ⌃⌥← / ⌃⌥→)
Mod+J / Mod+K (or ↓ / ↑)Focus the window down / up in a column⌃⌥J / ⌃⌥K (or ⌃⌥↓ / ⌃⌥↑)
Mod+Home / Mod+EndFocus the first / last column⌃⌥⌘← / ⌃⌥⌘→
Mod (press and release)Overview⌃⌥O
—Jump to window 1 to 9⌃⌥1 to ⌃⌥9
—Search windows by name⌃⌥Space

Moving columns and windows

niri defaultActionLanesMac
Mod+Ctrl+H / Mod+Ctrl+LMove the column left / right⌃⌥⇧H / ⌃⌥⇧L (or ⌃⌥⇧← / ⌃⌥⇧→)
Mod+Ctrl+J / Mod+Ctrl+KMove the window down / up in its column⌃⌥⇧J / ⌃⌥⇧K
Mod+VFloat the window / tile it again⌃⌥T
Mod+QClose the window⌘W, the normal Mac shortcut

Widths and heights

niri defaultActionLanesMac
Mod+RCycle preset column widths⌃⌥R (25, 33, 50, 66 and 75 percent)
Mod+Minus / Mod+EqualColumn narrower / wider⌃⌥- / ⌃⌥=
Mod+Shift+Minus / Mod+Shift+EqualWindow shorter / taller in a column⌃⌥⇧- / ⌃⌥⇧=
Mod+Ctrl+RReset window heights⌃⌥E makes heights in a stack even
Mod+CCentre the column⌃⌥C
Mod+Shift+FFull screen⌃⌥F (macOS full screen)
Mod+FMaximize the column⌃⌥⌘1 fills the screen with one window

Stacks and tabs

niri defaultActionLanesMac
Mod+CommaTake the next window into this column⌃⌥S
Mod+PeriodPush the bottom window out of the column⌃⌥D pops the focused window out
Mod+BracketLeft / Mod+BracketRightMove the window into or out of the column on the left / right⌃⌥[ / ⌃⌥] stacks into it; ⌃⌥⇧[ / ⌃⌥⇧] pops out that way
Mod+WShow the column as tabs⌃⌥⇧T

Workspaces and monitors

niri defaultActionLanesMac
Mod+1 to Mod+9Show workspace 1 to 9⌥1 to ⌥9 (⌃⌥⇧1 to 9 on keyboards that need ⌥ + number for typing)
Mod+Ctrl+1 to Mod+Ctrl+9Move the column to workspace 1 to 9⌥⇧1 to ⌥⇧9 moves the window
Mod+Shift+Ctrl+H / LMove the column to the monitor left / right⌃⌥N sends the window to the next display

niri stacks workspaces vertically and scrolls between them with Mod+U and Mod+I. LanesMac numbers them instead: each display has up to 9, and the strip indicator shows each one and how many windows it holds.

Keys that belong to macOS

  • Mod+T (terminal) and Mod+D (launcher): open apps with Spotlight (⌘Space) or a launcher such as Raycast or Alfred.
  • Mod+Shift+Slash (show the hotkey overlay): open Settings › Shortcuts in LanesMac to see and change every key.
  • Mod+Shift+E (quit niri): ⌃⌥Q pauses LanesMac, and quitting it puts every window back where it started.

Questions

Can I use Command as the Mod key like Super in niri?

You can rebind any LanesMac action in Settings › Shortcuts, but many ⌘ keys are already used by every Mac app, so ⌃⌥ is the safer default.

Do H, J, K and L work for focus?

Yes. LanesMac accepts ⌃⌥H, ⌃⌥J, ⌃⌥K and ⌃⌥L as well as the arrow keys.

Is there a config.kdl for LanesMac?

No. LanesMac uses a settings window. The niri for Mac guide shows where each common config.kdl option lives.

Try it with your own windows

LanesMac is free for 7 days, with every feature. After that it's a one-time purchase, no subscription. Works on macOS 13 Ventura or later, on Apple silicon and Intel Macs.