ホーム 暮らし niri-mac — A new type of WM that brings "scrolling tiling" to macOS

niri-mac — A new type of WM that brings "scrolling tiling" to macOS

篠原 沙世 篠原 沙世 • 更新: • 公開: • 読了約 23 分
目次

️ This article was written by Claude.

Introduction

n718f067395ea

Have you ever struggled with window management on your Mac?

Windows scattered across the desktop, overlapping apps, days spent repeatedly hitting Command+Tab—if this sounds like you, you should try niri-mac right now.

Inspired by the highly acclaimed Linux window manager niri, this is a scrolling tiling WM implemented from scratch in Swift using the macOS Accessibility API.

What is niri-mac?

Windows are arranged in "columns," and the screen scrolls to follow the focus as you move it—that is the core concept of niri-mac.

Traditional tiling WMs try to fit all windows on the screen, so existing windows shrink every time a new one is added. niri-mac reverses this logic.

Instead, columns are added to an infinitely long horizontal virtual canvas. Users move between columns using Ctrl+scroll or keyboard shortcuts, and the viewport scrolls smoothly so that the focused column is always in the center of the screen. It feels like applying an IDE's code editor to window management.

Why it's appealing

1. Windows are never "crushed"

Many have experienced the tragedy of all windows becoming tiny when opening a fourth window in a traditional WM. That doesn't happen in niri-mac. Each column maintains an independent width (cycle through 1/3, 1/2, and 2/3 of the screen width with Ctrl+Opt+R), and new windows are simply added to the far right.

2. Perfect for trackpads

Just hold Ctrl and swipe horizontally to scroll the entire layout smoothly. Doing this on a MacBook trackpad feels great, thanks to the inertial scrolling. You can also operate it using Option+scroll.

3. Column pinning

The Pin feature meets the need to "always keep the terminal on the left." When you pin an active column with Ctrl+Opt+P, it stays stuck to the left edge even when other columns scroll. It's perfect for keeping reference documents or chats pinned.

4. Drag and swap

Simply drag a window more than 20px and drop it into another column to swap the positions of the two windows. It's intuitive and allows you to complete operations without using the keyboard.

5. Dynamic workspaces

You can move to the next workspace with Ctrl+Opt+Cmd+↓, and a new workspace is automatically created when you reach the end. You can separate projects and contexts with an infinitely expandable number of workspaces.

6. Column aggregation of multiple windows

When you want to stack multiple windows of the same app into one column, you can absorb them into the left column with Ctrl+Opt+Return, and conversely, you can detach them from the column with Ctrl+Opt+Shift+Return.

Keyboard Shortcut Quick Reference

| Key | Action |
|------|------|
| Ctrl+Opt+← → | Move focus between columns |
| Ctrl+Opt+↑ ↓ | Move window up/down within a column |
| Ctrl+Opt+Shift+← → | Rearrange columns left/right |
| Ctrl+Opt+R | Cycle column width (1/3 → 1/2 → 2/3) |
| Ctrl+Opt+P | Pin/unpin column |
| Ctrl+Opt+Return | Absorb into left column |
| Ctrl+Opt+Shift+Return | Detach from column |
| Ctrl+Opt+Cmd+↑ ↓ | Switch workspaces |
| Ctrl+Opt+Cmd+Shift+↑ ↓ | Move window to workspace |
| Ctrl+Opt+- / = | Shrink/expand window height |
| Ctrl+Opt+A | Auto-Fit mode ON/OFF |

Installation Method

Requirements
  • macOS 13 (Ventura) or later

  • Swift 5.9 or later

  • Accessibility permissions and Input Monitoring permissions

Steps
git clone https://github.com/FScoward/niri-mac.git
cd niri-mac
.app バンドルを作成
bash make-app.sh
起動
open NiriMac.app

After launching for the first time, add NiriMac.app to both "Accessibility" and "Input Monitoring" in System Settings → Privacy & Security.

Especially recommended for these people

  • Engineers/Developers: People who want to keep their editor, terminal, browser, and Slack open side-by-side at all times

  • Multi-monitor users: People who tend to have messy window organization on their sub-monitors

  • Linux i3/Sway/niri users: People who cannot let go of a tiling WM even after switching to Mac

  • Keyboard enthusiasts: People who want to control windows at high speed without using a mouse

Limitations

  • The macOS Accessibility API is best-effort, so some windows (such as system apps under SIP protection) may refuse to be repositioned

  • Full-screen windows are not managed

  • Character-grid terminals like iTerm2 snap to cell-based heights, so they may not always align perfectly at the pixel level.

Summary

niri-mac is a rare tool that brings the productivity of a tiling WM to macOS without disrupting the "macOS way" as much as possible. Installation takes only a few minutes, no configuration file is required, and since it is written in Swift, its performance is impeccable.

Once you experience a world where "windows are never crushed," you will never want to go back.

niri-mac — Bringing "Scrollable Tiling" to macOS

Introduction

Have you ever felt overwhelmed managing windows on your Mac?

Windows scattered across your desktop, apps stacking on top of each other, endlessly pressing Command+Tab — if that sounds familiar, niri-mac is exactly what you need.

Inspired by the acclaimed Linux window manager niri, niri-mac is a scrollable tiling window manager built entirely in Swift on top of the macOS Accessibility API.

What is niri-mac?

The core concept is simple: windows are arranged in horizontal columns, and the viewport smoothly scrolls to follow focus.

Traditional tiling window managers try to fit everything on screen at once, which means every new window shrinks everything else. niri-mac flips that idea on its head.

Instead, columns are added to an infinitely wide virtual canvas. You navigate between them with keyboard shortcuts or trackpad gestures, and the focused column always slides into view — much like applying a code editor's tab metaphor to window management itself.

Key Features

1. Windows Never Get Crushed

Anyone who has opened a fourth window in a traditional tiling WM knows the pain of everything becoming a thin sliver. That never happens in niri-mac. Each column keeps its own independent width (cycle between 1/3, 1/2, and 2/3 of the screen with Ctrl+Opt+R), and new windows simply append to the right.

2. Trackpad-Native Scrolling

Hold Ctrl and swipe horizontally to scroll the entire layout. On a MacBook trackpad, the natural momentum scrolling makes this feel silky smooth. You can also use Option+scroll for the same effect.

3. Column Pinning

Want your terminal glued to the left side no matter where you scroll? Pin it. Press Ctrl+Opt+P on any column to lock it to the left edge of the screen. It stays put while everything else scrolls freely — perfect for a terminal, reference doc, or chat window.

4. Drag-and-Swap

Drag any window more than 20px and drop it onto another column to instantly swap their positions. No keyboard required.

5. Dynamic Workspaces

Switch workspaces with Ctrl+Opt+Cmd+↓. Reach the last one and a brand-new workspace is created automatically. Separate projects, contexts, and tasks across as many workspaces as you need.

6. Column Stacking and Splitting

Stack multiple windows into one column with Ctrl+Opt+Return (merge into left column), or pop a window out of a stack with Ctrl+Opt+Shift+Return.

Keyboard Shortcuts

| Key | Action |
|-----|--------|
| Ctrl+Opt+← → | Focus left/right column |
| Ctrl+Opt+↑ ↓ | Focus window above/below in column |
| Ctrl+Opt+Shift+← → | Reorder column left/right |
| Ctrl+Opt+R | Cycle column width (1/3 → 1/2 → 2/3) |
| Ctrl+Opt+P | Pin/unpin active column |
| Ctrl+Opt+Return | Merge window into left column |
| Ctrl+Opt+Shift+Return | Expel window from column |
| Ctrl+Opt+Cmd+↑ ↓ | Switch workspace |
| Ctrl+Opt+Cmd+Shift+↑ ↓ | Move window to workspace above/below |
| Ctrl+Opt+- / = | Shrink/expand active window height |
| Ctrl+Opt+A | Toggle Auto-Fit mode |

Installation

Requirements
  • macOS 13 (Ventura) or later

  • Swift 5.9 or later

  • Accessibility permission

  • Input Monitoring permission

Steps
git clone https://github.com/FScoward/niri-mac.git
cd niri-mac
Build the .app bundle
bash make-app.sh
Launch
open NiriMac.app

After first launch, go to System Settings → Privacy & Security and grant both Accessibility and Input Monitoring permissions to NiriMac.app.

Who Should Try This?

  • Developers: Want your editor, terminal, browser, and Slack always side-by-side without juggling windows

  • Multi-monitor users: Tired of messy window arrangements on secondary displays

  • Linux migrants: Used i3, Sway, or niri on Linux and miss tiling on macOS

  • Keyboard power users: Want to navigate windows at full speed without touching the mouse

Known Limitations

  • The macOS Accessibility API is best-effort; some windows (system apps under SIP protection) may refuse repositioning

  • Full-screen windows are not managed

  • Character-grid terminals like iTerm2 snap their height to row boundaries, so pixel-perfect height alignment is not always possible

Closing Thoughts

niri-mac brings tiling WM productivity to macOS without fighting the platform. Setup takes minutes, no config files needed, and being written in Swift means it runs lean and fast.

Once you experience a world where windows never get crushed, you won't want to go back.

同じカテゴリの記事

篠原 沙世

アニメとゲームの新作情報を担当。制作会社・配信元の公式告知と登壇情報を照合して記事化します。

おすすめの関連記事