# dwm and xmonad for Mac: the closest options

Source: https://ribbonformac.com/dwm-and-xmonad-for-mac  
Updated: 2026-10-29

dwm and xmonad are X11 window managers, so neither runs on macOS. The closest thing to their master-stack layout is Amethyst, a free tiler inspired by xmonad with a Tall layout and keyboard control. yabai and AeroSpace suit people who'd rather script or write config. If what you liked was "every window has a place and I never drag", a scrolling window manager is worth a look too, especially on a laptop.

## What dwm and xmonad users want

- **Master-stack tiling.** One main window takes a large area; the rest share a stack beside it.
- **Automatic placement.** New windows go somewhere sensible without dragging.
- **Keyboard control** on a single modifier, with <kbd>J</kbd>/<kbd>K</kbd> to move between windows.
- **Tags or workspaces** switched with a modifier and a number.
- **A config you own:** dwm's `config.h` or xmonad's Haskell.

macOS can't replace the window manager itself; apps work on top of macOS's window server using the Accessibility permission. That rules out some things (no true tags; windows are always macOS windows) but the core workflow translates.

## The closest Mac tilers

| | Layout model | Config | Price |
| --- | --- | --- | --- |
| Amethyst | Automatic layouts, including Tall (master-stack), Wide, Column, Fullscreen, BSP | Preferences window, optional YAML | Free, MIT |
| yabai | BSP tiling, scripted from the shell | Shell script, plus a hotkey tool such as skhd | Free, MIT |
| AeroSpace | i3-style tree with its own workspaces | TOML | Free, MIT |
| Ribbon | Scrolling strip of columns | Settings window | $9.99 once |

**Amethyst** is the closest to dwm and xmonad in spirit: pick a layout and it places every window, shrinking the stack as you open more. **yabai** gives you the most control if you like scripting. **AeroSpace** is closer to i3; see [i3 for Mac](https://ribbonformac.com/i3-for-mac).

## Tags vs Spaces

dwm's tags let a window appear on several views at once. macOS has nothing like that. Spaces are separate desktops: a window lives on one (or, if its app is assigned to All Desktops, on every one). Use <kbd>⌃</kbd> plus a number to jump between Spaces after you turn on **Switch to Desktop N** in Keyboard Shortcuts → Mission Control. AeroSpace replaces Spaces with its own workspaces if you want something closer to dwm's views.

## Where master-stack struggles on a laptop

Master-stack works well on a big monitor. On a 13- or 14-inch MacBook, the stack gets thin fast: with a main window plus four in the stack, each stack window is a sliver. dwm users on small screens tend to switch to monocle mode a lot, which means one window at a time.

A scrolling layout is the other answer. Instead of dividing the screen, windows sit in columns on a strip wider than the screen, each at a width you chose. Opening a window adds a column; nothing shrinks. You move focus left and right and the strip follows.

## Ribbon for keyboard-first users

[Ribbon](https://ribbonformac.com/) is a scrolling window manager that works the way dwm users expect from the keyboard:

- <kbd>⌃</kbd><kbd>⌥</kbd><kbd>H</kbd>/<kbd>J</kbd>/<kbd>K</kbd>/<kbd>L</kbd> (or arrows) to focus, <kbd>⌃</kbd><kbd>⌥</kbd><kbd>⇧</kbd> plus the same keys to move.
- <kbd>⌃</kbd><kbd>⌥</kbd><kbd>1</kbd>–<kbd>9</kbd> to jump to a window by position.
- Stacks: several windows in one column, the nearest thing to a master column with a stack beside it. <kbd>⌃</kbd><kbd>⌥</kbd><kbd>]</kbd> stacks a window into the column to its left.
- <kbd>⌃</kbd><kbd>⌥</kbd><kbd>F</kbd> for full width, like monocle but without hiding the others.
- Every shortcut can be rebound; per-app float rules are in Settings.

What you won't get: a config file you compile. Ribbon is set up in a settings window. If you want a text config, Paneru (free, open source, TOML) is the engine Ribbon builds on. [Try Ribbon in the live demo](https://ribbonformac.com/#demo); [pricing](https://ribbonformac.com/#pricing) is $9.99 once.

## FAQ

### Can you run dwm or xmonad on a Mac?

Not as the window manager. They're X11 programs, and macOS has its own window server. You can only run them inside XQuartz for X11 apps, which doesn't manage normal Mac windows.

### What is the closest thing to xmonad on macOS?

Amethyst, which is inspired by xmonad and has a Tall master-stack layout, configured in a preferences window.

### Is there a dwm-style monocle layout on Mac?

Amethyst has a Fullscreen layout. In Ribbon, <kbd>⌃</kbd><kbd>⌥</kbd><kbd>F</kbd> makes a column full width while the others wait beside it.

## Keep reading
- [i3 for Mac](https://ribbonformac.com/i3-for-mac) — No i3 or sway on macOS. Match the i3 habit you miss to the right Mac tiler.
- [Hyprland for Mac](https://ribbonformac.com/hyprland-for-mac) — No Hyprland on macOS, but each of its layouts has a Mac stand-in. Eye candy doesn't.
- [Ribbon vs Amethyst](https://ribbonformac.com/ribbon-vs-amethyst) — Free xmonad-style auto layouts vs a paid strip where windows keep their width.
- [Linux keyboard habits on Mac](https://ribbonformac.com/linux-keyboard-shortcuts-on-mac) — Super, Ctrl and Cmd, terminal keys, Emacs bindings, remapping, and a WM layer.
- [Vim keys for windows](https://ribbonformac.com/vim-keys-window-management-mac) — hjkl for focus and moving windows, the right modifier, and Vim keys beyond the editor.
