# niri keybindings on a Mac

URL: https://lanesmac.com/niri-keybindings-mac · Updated 2026-11-30

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.

**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 default | Action | LanesMac |
| --- | --- | --- |
| 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+End | Focus 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 default | Action | LanesMac |
| --- | --- | --- |
| Mod+Ctrl+H / Mod+Ctrl+L | Move the column left / right | ⌃⌥⇧H / ⌃⌥⇧L (or ⌃⌥⇧← / ⌃⌥⇧→) |
| Mod+Ctrl+J / Mod+Ctrl+K | Move the window down / up in its column | ⌃⌥⇧J / ⌃⌥⇧K |
| Mod+V | Float the window / tile it again | ⌃⌥T |
| Mod+Q | Close the window | ⌘W, the normal Mac shortcut |

### Widths and heights

| niri default | Action | LanesMac |
| --- | --- | --- |
| Mod+R | Cycle preset column widths | ⌃⌥R (25, 33, 50, 66 and 75 percent) |
| Mod+Minus / Mod+Equal | Column narrower / wider | ⌃⌥- / ⌃⌥= |
| Mod+Shift+Minus / Mod+Shift+Equal | Window shorter / taller in a column | ⌃⌥⇧- / ⌃⌥⇧= |
| Mod+Ctrl+R | Reset window heights | ⌃⌥E makes heights in a stack even |
| Mod+C | Centre the column | ⌃⌥C |
| Mod+Shift+F | Full screen | ⌃⌥F (macOS full screen) |
| Mod+F | Maximize the column | ⌃⌥⌘1 fills the screen with one window |

### Stacks and tabs

| niri default | Action | LanesMac |
| --- | --- | --- |
| Mod+Comma | Take the next window into this column | ⌃⌥S |
| Mod+Period | Push the bottom window out of the column | ⌃⌥D pops the focused window out |
| Mod+BracketLeft / Mod+BracketRight | Move the window into or out of the column on the left / right | ⌃⌥[ / ⌃⌥] stacks into it; ⌃⌥⇧[ / ⌃⌥⇧] pops out that way |
| Mod+W | Show the column as tabs | ⌃⌥⇧T |

### Workspaces and monitors

| niri default | Action | LanesMac |
| --- | --- | --- |
| Mod+1 to Mod+9 | Show workspace 1 to 9 | ⌥1 to ⌥9 (⌃⌥⇧1 to 9 on keyboards that need ⌥ + number for typing) |
| Mod+Ctrl+1 to Mod+Ctrl+9 | Move the column to workspace 1 to 9 | ⌥⇧1 to ⌥⇧9 moves the window |
| Mod+Shift+Ctrl+H / L | Move 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.
