Skip to content
pseudobunPublic

About

Tiling window manager for macOS with virtual workspaces, presets and stack indicators

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

214 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paw logo

paw

A tiling window manager for macOS, with stacks you can see.

bsp and stack layouts, virtual workspaces, presets, key bindings and a CLI in one native app.
No yabai, no skhd, no Hammerspoon, no SIP changes. Pure Swift and AppKit.

CI Release macOS 14+ Swift 6 License: MIT

Install · Features · Configure · Commands · Status bar · Development


paw switching layouts, moving windows between stacks and opening the overview

Layouts, stacks and the overview (hyper+tab).

Note

paw is in beta. It runs as a daily driver, but config keys and commands may still change before 1.0. Read the changelog when you upgrade.

Install

1. Install with Homebrew

brew install --cask pseudobun/tap/paw

This puts paw.app in /Applications and the paw CLI on your PATH. Always use the full pseudobun/tap/paw name: a bare paw cask in Homebrew is a different app.

2. Stop other window managers

Quit anything else that moves windows or grabs hotkeys, so they don't fight paw:

yabai --stop-service; skhd --stop-service   # if you use them

Also quit AeroSpace, Amethyst, Rectangle and the like.

3. Start paw and allow Accessibility

open -a paw

Then System Settings → Privacy & Security → Accessibility → paw (or paw's Settings → General → Permissions → Request). paw waits for the grant and starts tiling right after. Updates keep the grant.

4. Tune macOS for tiling

In System Settings → Desktop & Dock:

  • turn off Automatically rearrange Spaces based on most recent use
  • under Windows, turn off Drag windows to screen edges to tile and Hold ⌥ key while dragging windows to tile

Keep one native Space per display; paw's workspaces replace Spaces. Extra macOS desktops can make tiles appear empty or switch desktops when an app takes focus. Check paw status → nativeSpaces or Settings → General → macOS desktops. In Mission Control, close extra desktop thumbnails to merge their windows into the remaining desktop, then run paw recover.

5. Check it works

paw status     # trusted: yes, bindings: ok

Press ctrl+←/→ to move focus, hyper+w for bsp, hyper+tab for the overview. Your config is at ~/.config/paw/config.json5 and applies the moment you save it.

6. Optional extras

  • Start at login: set openAtLogin: true in the config.
  • Workspaces in your menu bar: see Status bar for a step-by-step sketchybar setup.
  • Much faster workspace switching: the optional Dock helper, see Faster workspace switching. It needs SIP partly off.

Updates

paw keeps itself current, without windows or prompts:

  1. Once a day it looks for a new version and downloads it in the background.
  2. It installs when paw quits, so the next start is the new version.
  3. paw update (or menu bar → Update to …) installs it now; paw restarts and retiles.
Want Do
Just look paw update --check (exit 10 when there is a new version)
Install right after downloading updates.automatic: true
No checks at all updates.check: false
Betas too updates.channel: "beta" (a beta build follows betas by itself; "stable" leaves them)
Homebrew instead brew upgrade --cask pseudobun/tap/paw (the full name: paw alone is RapidAPI's app); betas: pseudobun/tap/paw@beta

Updates are signed (EdDSA) and keep the Accessibility grant.

Uninstall

sudo paw dock uninstall                          # only if you installed the Dock helper
brew uninstall --cask pseudobun/tap/paw          # add --zap to remove the config and state too

The Dock helper is a root launch daemon, so remove it first; Homebrew does only with --zap, and asks for your password for it.

Quitting paw (paw quit) brings every hidden window back on screen. After a crash, start paw again (it remembers which workspace each window was on) or run paw recover.

Build from source instead

Needs Xcode or the Command Line Tools (Swift 6) and just.

A build from source is paw Dev: its own bundle id (com.pseudobun.paw.dev), data and Accessibility grant, no updates and no login item. It runs instead of the release paw without touching it, so you can keep the Homebrew paw installed and switch back and forth.

git clone https://github.com/pseudobun/paw.git && cd paw
just local-cert   # once: a self-signed certificate, so Accessibility survives rebuilds
just dev          # → ~/Applications/paw Dev.app, quits the release paw, starts paw Dev
just undev        # quits paw Dev, starts the release paw again

With an Apple Development or Developer ID certificate, just dev signs with it instead of the self-signed one (or set PAW_SIGN_IDENTITY); without either it signs ad hoc, and macOS asks for Accessibility after every rebuild. paw (and hop, and your bar) talks to whichever paw runs; paw-dev is the dev build's own CLI. just uninstall removes paw Dev.

just launchd starts the release paw at login with a LaunchAgent that restarts it after a crash.

Faster workspace switching (optional)

Out of the box paw moves windows the way every macOS window manager without special rights does: over Accessibility, asking each window's app to move it. That works everywhere, but an app moves its window only when it gets round to it, so a workspace switch takes 30–150 ms (longer for busy apps), and windows of different apps don't land in the same frame.

The Dock helper moves windows straight in the window server instead: a small library paw loads into Dock.app, the one process macOS lets move any window. Every window of a switch then moves at once, in the same frame, without waiting for any app. Measured on an M-series MacBook:

Accessibility Dock helper
windows in place after a switch (median) ~100 ms ~30 ms
new windows shown and old ones hidden apart, as each app gets to it in the same frame

Loading code into Dock needs System Integrity Protection partly off (its debugging restrictions), like yabai's scripting addition. Everything else works the same with SIP on; without the helper paw simply uses Accessibility.

Warning

Turning off SIP's debugging, filesystem and NVRAM protections lets any process running as root read and change other processes (Dock among them) and NVRAM. Ordinary apps without root gain nothing, but anything you ever run with sudo can do more harm than with SIP fully on. Some software (anti-cheat, MDM, iOS apps on the Mac) may refuse to run with SIP partly off. You can turn it back on any time (step 5).

Apple silicon only (the helper is built for arm64e).

  1. Turn off SIP's debugging restrictions (in Recovery; SIP can't be changed from macOS):

    1. Shut the Mac down. Hold the power button until Loading startup options appears, choose Options → Continue and sign in.
    2. In the menu bar: Utilities → Terminal, then:
      csrutil enable --without debug --without nvram
      paw needs only --without debug (task_for_pid on Dock); --without nvram lets step 2 set the boot argument. Leave the file-system protection on.
    3. reboot.
  2. Allow arm64e code from outside Apple in Dock (Dock is an arm64e process), in macOS:

    sudo nvram boot-args=-arm64e_preview_abi

    then restart once more. If nvram boot-args already shows other arguments, keep them: sudo nvram boot-args="<what's there> -arm64e_preview_abi".

  3. Check: csrutil status says Custom Configuration with Debugging Restrictions: disabled, and nvram boot-args shows -arm64e_preview_abi.

  4. Install the helper:

    sudo paw dock install     # paw-dev for a build from source
    paw dock status           # sip: …off, installed: yes, loaded: yes

    It copies the helper (from paw.app) to /Library/Application Support/paw, owned by root, and adds a launch daemon (com.pseudobun.paw.dock) that loads it into Dock now, after every restart and whenever Dock restarts. paw picks it up within a couple of seconds; paw status shows windowMoves: through the Dock helper. When the helper is new or changed, install restarts Dock so it runs the new one.

    When an update of paw changes the helper, paw says so once after the update and the menu bar shows Dock Helper Outdated (it copies the command): run sudo paw dock install again. Until then the old helper keeps working, and paw status says through the Dock helper (outdated: sudo paw dock install). paw dock status shows the versions in this paw, installed and in Dock.

  5. Undo: sudo paw dock uninstall (then killall Dock), and to turn SIP fully back on, in Recovery: csrutil enable; sudo nvram -d boot-args removes the boot argument.

layout.windowServer: false keeps windows on Accessibility even with the helper loaded. A size change still goes through the window's app (only it can lay itself out again); the helper moves windows that keep their size, which is every window of an ordinary workspace switch.

Requirements

  • macOS 14 Sonoma or later. Release builds are universal; paw is developed and tested on Apple Silicon
  • The Accessibility permission
  • Optional: the Screen Recording permission, for live window pictures in the overview (overview.thumbnails)
  • Optional, Apple silicon: SIP's debugging restrictions off, for the Dock helper (Faster workspace switching)
  • Optional: sketchybar-app-font in ~/Library/Fonts for app glyphs in the indicators (without it they show the app's own icon), and a Nerd Font such as brew install --cask font-geist-mono-nerd-font for their text
  • Optional: something that turns Caps Lock into a hyper key (⌘⌃⌥⇧), e.g. Karabiner-Elements or Hyperkey, since several default bindings use hyper. Rebind them if you don't have one

Features

Tiling

Layouts per workspace: bsp, columns, master, stack and float. A weighted tree lets a split hold any number of tiles, each with its share, so thirds come naturally. A tile that closes gives its space to its neighbour.

Stacks you can see

Any tile can hold several windows. An island beside each stack shows one icon per window in the app's own colour. Click to focus, scroll to cycle, hover for the title.

Virtual workspaces

Like AeroSpace: instant switching with no Mission Control and no SIP changes. ⌘Tab to a window on a hidden workspace switches to it.

Presets and setups

Say which apps share which tile on which workspace. initiate opens them and arranges every workspace in one go. Setups per display arrangement (laptop, home, office) apply by themselves.

Mouse that helps

Drag a window and a preview shows where it lands: split, swap, stack (⌥) or dock. Drag the gap between tiles to resize, double-click it to even out. Middle-button gestures switch workspaces.

Overview

hyper+tab shows every workspace as a card and the selected one large, with live window pictures. Type to filter, arrows to move, drag windows between workspaces.

Built for scripts and bars

Every binding is also a CLI command (paw focus west, paw workspace 3). paw subscribe streams JSON events over a private socket for sketchybar and friends.

One config file

Commented JSON5 with every default, hot-reloaded on save. A broken file keeps the last good config. The Settings window writes the same file, so people and agents can both edit it.

Everything paw does
  • Layouts per workspace: bsp (new windows split the focused tile, wide tiles side by side; see Canvas), columns (equal columns), master (one big window, the rest in rows beside it), stack (every window in one stack), float. Gaps, padding and optional room for a status bar (layout.barTop)
  • Weighted tree (like TrellisWM): a split holds any number of tiles, each with its share, so thirds and rows of equal columns are natural; a tile that closes gives its space to its neighbour and the others keep their size
  • Stacks: any tile can hold several windows. stack <dir> puts the focused window on the stack that way (merging stacks), unstack takes it out into its own tile, unstack all splits the whole stack; focus stack.next|prev goes through it, swap stack.next|prev reorders it
  • Moving: focus, swap, warp, join in four directions (at the screen edge they go to the next display), resize (neighbours further along give way once one is at its minimum), balance, rotate, toggle float|zoom|split, grid
  • Drop zones: drag a tiled window and a preview shows where it lands. On a tile's edge it splits that tile, on the gap between tiles it makes room there, at the screen's edge it docks beside everything, in a tile's middle it swaps (holding ⌥: stacks). Dropped on another display it joins the workspace there
  • Seams: drag the gap between two tiles to resize both; double-click it to even them out. Dragging a tiled window's own edge resizes its tile too
  • Undo / redo of layout changes per workspace (hyper+z, hyper+y), focus history across workspaces (focus back|forward, hyper+o/hyper+i) and find (paw find safari)
  • Canvas (bsp, like TrellisWM; set layout.minTileWidth/minTileHeight to turn it on): tiles never get smaller than that. When there are more windows than fit, the tree grows past the screen and the screen shows the largest branch around the focused window; focus moving (keys, clicks, ⌘Tab) takes the screen with it. The overview shows the whole canvas with what's on screen outlined
  • Apps with a minimum size: a window that won't shrink to its tile doesn't stick out over its neighbours; it waits out of sight and a placeholder with its icon and title takes the tile (click it to focus it, then move it with ctrl+alt+arrows or drag it somewhere roomier; double-click zooms in until it fits). Resizing stops before any tile gets smaller than layout.placeholderMinWidth/Height; layout.placeholders: false lets such windows stick out instead. retile forgets the learned sizes
  • Zoom through the tree (TrellisWM's camera, one level at a time): hyper+j shows the branch holding the focused window over the whole workspace, again one level deeper down to the window alone; hyper+k steps back out, animated. ⌥-scroll or ⌥-pinch over a window does the same (mouse.zoomModifier). The rest waits out of sight
  • Overview (hyper+tab): every workspace as a card, the selected one large with every window in its place (with Screen Recording: live pictures). Arrows move, typing filters, Return goes, ⇧Return brings the window to you, drag a window onto a card or next to another window
  • Windows come back: a window you minimise, or whose app you hide or quit, returns to its tile; tiles, sizes and stacks survive restarting paw
  • Focus border (border, off by default): a line around the focused window or placeholder, with its colour, width and radius in the config or Settings. On macOS 26+, autoRadius matches each window's corners; radius is the fallback and the placeholder radius. Turn autoRadius off to use a fixed radius for every window
  • Workspace HUD: the number and apps of the workspace flash when you switch
  • Mouse gestures: hold the middle (or back/forward) button and drag: left/right for the previous/next workspace, up for the overview
  • Mouse follows focus (and optional focus follows mouse)
  • Focus after closing the focused window: the window under the mouse takes focus; otherwise paw prefers another window from the same app on that workspace, then the workspace's next window
  • If the pointer was inside the closed window, focus follows the tile that fills that position. With a placeholder selected, ⌘Q quits its app and ⌘W presses its window's close control. A decorationless, single-window Alacritty instance quits on ⌘W; other apps without a close control must first be enlarged to close normally.
  • Virtual workspaces (like AeroSpace): layout.workspaces exist from the start, workspace new|close|next|prev|last, move-to <n> [--follow]. A hidden workspace's windows wait in a screen corner, so switching is instant and needs no Mission Control or SIP. ⌘Tab to a window on a hidden workspace switches to it
  • Presets: workspaces in the config says which apps share which tile on which workspace (narrowed by window title if you like); new windows of those apps land there, arrange puts everything back, initiate opens the apps (or runs a tile's launch command) and arranges every workspace in one go
  • Setups per display arrangement (laptop only, home, work…): paw picks the one matching the connected displays by itself, pins each workspace to its display and numbers them display by display like yabai (workspace new on a display numbers it after that display's others). paw initiate <setup> (or the menu bar icon, or hop's "Set Workspace") forces one. Automatic switching is optional: autoSwitchSetups: false (menu bar → Switch Automatically) keeps the setup in use until you pick one, and a setup's autoSwitch overrides it. Several setups for the same displays: paw takes the one you picked last for them, else the first by name
  • Settings window (menu bar icon → Settings…, or paw settings) for every key, laid out like System Settings; it writes the same commented JSON5 file, so people and agents can keep editing the file too. On the pages about the indicators' look, every indicator shows around the window and changes as you edit
  • Themes for every indicator: OG, OG Light, Modern, Minimal, Solarpunk and Cyberpunk set colours, fonts and shape at once (Settings → Appearance: hover one to see it, click to use it; or paw theme <name>). Any appearance key overrides the theme
  • Liquid Glass on macOS 26 and later: the stack indicators, their title islands, the workspace HUD, the move strip, the mode island and the edge markers sit on native glass (NSGlassEffectView), tinted with the theme's island colour, light or dark as the theme is. The window server draws it, so it costs paw nothing per frame. On by default; appearance.glassStyle picks "regular" (frosted, like Spotlight) or "clear" (barely frosted), appearance.glassTint (0–1, default 0.2) how much of the island colour tints it. appearance.glass: false (Settings → Appearance → Liquid Glass) keeps the theme's flat fill, border and shadow, which is also what older macOS versions get
  • Animations for window moves: duration, curve (easeOutCubic, spring, easeOutBack…), and how sizes change
  • Stack indicators: a vertical island next to each stack with one app icon per window, each in the app's own colour (picked from its app icon); click focuses, scroll cycles, hover shows the title
  • Modes: hyper+r turns on resize mode (arrows or hjkl grow, with shift shrink, esc leaves) with an island at the top of the screen; define your own key modes in modes
  • Rules: float or ignore apps and windows by name/title, send apps to workspaces
  • Floating windows: fixed-size windows (a greyed-out green button, like System Settings) float on their own (a rule with float: false tiles them) and open centred. Floats stay in front of tiles (focus.floatsOnTop): with the Dock helper loaded the window server keeps them above, as in Hyprland; otherwise paw brings them forward again whenever a tile takes focus, clicks included (a brief flicker). focusFollowsMouse focuses without raising, and a float dragged to another display joins the workspace shown there
  • Key bindings in the config (left/right modifiers like ralt work, hyper = ⌘⌃⌥⇧), and the same commands on the CLI: paw focus west, paw workspace 3
  • Events for status bars and scripts: paw subscribe streams JSON lines (a snapshot first, then workspaceChanged, windowFocused, windowsChanged, layoutChanged, zoomChanged, modeChanged, displaysChanged, setupChanged, configReloaded) over one connection, and --exec runs a command per event (sketchybar example). Shell hooks still work
  • Private CLI socket: the CLI talks to paw over a Unix socket only your user can reach

Configure

On first launch paw writes ~/.config/paw/config.json5 (or $PAW_CONFIG) with every default and a comment for each key; the same file is examples/config.json5. Saving applies it at once, including the file icons.map points to. A broken file keeps the last good config: the HUD says so, the menu bar icon turns orange until the file reads again, and paw config check prints the problem. Every key is optional: delete one to get its default.

A typical setup: presets for the apps you always use, a status bar, and a key to set it all up:

{
  layout: {
    workspaces: 7,
    barTop: 41, // with a 40 pt sketchybar
  },

  // Which apps go where. Apps in one tile stack, in this order (the first one on top).
  workspaces: {
    "1": { layout: "stack", tiles: [ { apps: ["Safari"] } ] },
    "2": { layout: "bsp", tiles: [ { apps: ["Ghostty"] }, { apps: ["Zed"], size: 1.5 } ] },
    // A tile for one window by title; `initiate` runs `launch` when it has no window yet.
    "4": { layout: "columns", tiles: [
      { apps: ["Ghostty"], title: "paw", launch: "open -na Ghostty --args --working-directory=$HOME/repos/paw" },
      { apps: ["Zed"] },
    ] },
    "3": { layout: "stack", tiles: [ { apps: ["Discord", "Spotify"] } ] },
    "6": { layout: "stack", tiles: [ { apps: ["Mail", "Calendar"] } ] },
    "9": { tiles: [ { apps: ["Slack"] } ], display: "secondary" },
  },

  // Switch setups by themselves when displays come and go (a setup's autoSwitch wins).
  autoSwitchSetups: true,

  // Per display arrangement; the one whose displays match replaces `workspaces` above.
  setups: {
    home: {
      displays: ["builtin", "DELL", "Gigabyte"], // "builtin", "external" or part of a display's name
      focus: "9",
      workspaces: {
        "1": { display: "builtin" },
        "8": { display: "DELL", layout: "stack", tiles: [ { apps: ["Discord", "Spotify"] } ] },
        "9": { display: "Gigabyte", layout: "bsp", tiles: [ { apps: ["Safari"], size: 2 }, { apps: ["Zed"] } ] },
      },
    },
  },

  // `paw initiate`: opens these apps (default: every app named in the presets), waits for their
  // windows and arranges every workspace, then shows `focus`.
  initiate: { apps: [], focus: "1", timeout: 15 },

  // For a bar, `paw subscribe` is sturdier (see Status bar); hooks still run shell commands.
  hooks: {
    displaysChanged: "~/.config/sketchybar/plugins/displays_changed.sh",
  },

  rules: [
    { app: "/^(System Settings|Calculator|Raycast)$/", float: true },
    { app: "Brave Browser", unlessTitle: "Brave", float: true }, // extension popups float
    { app: "Telegram", workspace: "5" },
    { app: "Spotify", workspace: "9", always: true }, // always on 9; opening it shows 9
  ],
}

Setting bindings or rules replaces the default list, so start from the ones in examples/config.json5 and change what you need.

Section Keys
layout default (stack; also bsp columns master float), minTileWidth (0: off), minTileHeight (0), placeholders (true: a placeholder for windows that won't shrink to their tile; false: they stick out), placeholderMinWidth (160), placeholderMinHeight (120), windowServer (true: move windows through the Dock helper when it's loaded, see Faster workspace switching), gap (10), padding {top bottom left right} (2/2/24/24, widened on the sides to fit indicators), barTop (0), barBottom (0), workspaces (10), unassignedWorkspace ("": windows of apps no preset places stay put; or a workspace)
focus mouseFollowsFocus (true), focusFollowsMouse (false), wrapStacks (false: stack next/prev stop at the ends), wrapWorkspaces (false: workspace next/prev stop at the first and last), floatsOnTop (true: floating windows stay in front of tiled ones)
animation enabled (true), durationMs (180), curve (easeOutCubic; also linear easeInOutCubic easeOutQuint easeOutBack spring), resize (start / animate / end), maxWindows (12)
bindings "key": "command"; modifiers cmd ctrl alt shift fn hyper meh and lalt/ralt lcmd/rcmd lctrl/rctrl lshift/rshift, a key name or a keycode like 0x18
modes "name": { "key": "command" }; while mode <name> is on its keys come first. Default: resize
workspaces "name": { layout, axis, tiles: [{ apps: ["Discord", "Spotify"], size: 1, title?, launch? }, …], display: "builtin" }
setups "name": { displays: ["builtin", "DELL"], focus, autoSwitch?, workspaces: { … } }
autoSwitchSetups true: switch to the setup matching the displays when they change; false: keep the one in use until you pick another
initiate apps ([] = every plain app name in the presets), focus (""), timeout (15 s)
rules { app, title?, unlessTitle?, manage?, float?, workspace?, always? }; app/title are names or /regex/; always: true keeps the windows on workspace (on open, at start, after a reload) and shows it when one opens, unless that workspace doesn't exist
indicator enabled (true), side (auto left right insideLeft insideRight), offsetX/Y, width, cellHeight, gap, padding, titles (hover/never), clickToFocus, scrollToCycle, unfocusedOpacity, fadeMs
appearance theme (og, og-light, modern, minimal, solarpunk, cyberpunk; the other keys override it), font (a family, or system / system-mono / system-rounded), fontSize, fontWeight, boldWeight, appFont, appIconSize, radius, cellRadius, pills, islandHeight, borderWidth, shadow, shadowOpacity, shadowRadius, hudOpacity, edgeOpacity, glass (Liquid Glass on macOS 26+, default true; kept across themes), glassStyle (regular, clear), glassTint (0–1, default 0.2), colors {island islandHi border fg muted dim accent wave good bad}
icons map (a sketchybar app_icons.lua; paw has a built-in copy), overrides ("App": ":glyph:"), brandColors (true), colors ("App": "#RRGGBB")
hooks workspaceChanged, windowFocused, windowsChanged, modeChanged, displaysChanged (shell commands with PAW_* variables)
mouse dropZones (true), stackModifier (alt), seamHandles (true), gestures ([{ button: "middle", direction: "left", command: "workspace prev" }, …]; buttons middle back forward, directions left right up down click)
overview thumbnails (auto: when Screen Recording is allowed; on asks for it; off)
hud workspace (true), durationMs (600), edges (true)
border enabled (false), color (0xccead186), width (2), autoRadius (true), radius (12), offset (2)
updates check (true: look once a day and offer new versions), automatic (false: install without asking), channel (auto: betas when running one; stable, beta)
openAtLogin

App names are what macOS shows in the menu bar (paw query lists the open ones); /regex/ matches by pattern.

Default bindings

Keys
ctrl+←↑→↓ focus
ctrl+alt+←↑→↓ swap
ctrl+shift+←↑→↓ stack onto the neighbour
cmd+shift+ctrl+←↑→↓ warp; a stacked window with nothing that way leaves its stack to that side
cmd+alt+ctrl+←↑→↓ join: into the tile that way, splitting it across (| | | → | =)
hyper+←/→ previous / next window in the stack
ctrl+1…9, ralt+1…9 workspace 1–9
ctrl+0, ralt+0 the side workspace (+N in the bar)
ralt+shift+1…0 send the window to a workspace (0: the side workspace, to sort out later)
cmd+ctrl+1…0 send and follow
ralt+a/d previous / next workspace
hyper+n, hyper+d new / close workspace
hyper+w/s/f layout bsp / stack / float
shift+alt+wasd, shift+ctrl+wasd grow / shrink
hyper+e, alt+r balance, rotate
hyper+r resize mode: ←↑→↓/hjkl grow, shift+ shrink, e balance, esc/return done
hyper+tab overview
hyper+], hyper+[ (đ, š on a Slovenian keyboard) move the workspace one place right / left (on to the next display at the end); while hyper is held a strip shows its neighbours, a dashed start / end slot where the order stops, and the side workspace dimmed before the start
hyper+j, hyper+k zoom in, out
hyper+z, hyper+y undo, redo
hyper+o, hyper+i focus back, forward (vim's jump list)
ctrl+alt+return zoom
ctrl+alt+space, ctrl+alt+c float, float in the middle
ctrl+shift+return float full size
ctrl+alt+u unstack
cmd+alt+r recover

Several displays

When displays are unplugged, the workspaces that lived on them (pinned there by a setup, made there with workspace new, or shown there) are cleared out: windows a preset in the new arrangement places go to their preset workspace, every other window waits on the side workspace, which the bar shows first as +N (N windows still to sort). Move them where you like; the side workspace disappears once it's empty (when you're on it, you go back to where you were). Workspaces that only existed for that display go away. move-to side (ralt+shift+0, with --follow: cmd+ctrl+0) throws any window there when you don't know yet where it belongs; workspace side (ctrl+0) goes there.

Each display shows one workspace. Without setups the workspaces are shared: switching shows one on the focused display, or focuses the display that already shows it. With a setup, its presets pin workspaces to displays (display: "DELL"), every bar shows only its display's workspaces, and numbers run display by display. Plugging displays in or out switches setups (unless autoSwitchSetups or the setup's autoSwitch is off) and retiles everything. focus/swap past the screen edge go to the next display, display <dir> and move-to-display move between them.

Status bar

paw draws no bar of its own; it feeds one. Step by step for sketchybar:

  1. Install sketchybar and its Lua API, SbarLua:

    brew install FelixKratz/formulae/sketchybar
    git clone https://github.com/FelixKratz/SbarLua.git /tmp/SbarLua && (cd /tmp/SbarLua && make install)
  2. Optional, for app glyphs instead of names: put sketchybar-app-font in ~/Library/Fonts.

  3. Copy examples/sketchybar/paw_spaces.lua to ~/.config/sketchybar/ and add require("paw_spaces") to your init.lua. It shows one item per workspace with its apps; click switches, right-click closes.

  4. Leave room for the bar so tiles start below it: layout.barTop in paw's config (41 for a 40 pt bar).

  5. Optional: sketchybar doesn't always follow displays coming and going. Copy examples/sketchybar/displays_changed.sh to ~/.config/sketchybar/plugins/ and set hooks.displaysChanged to its path; paw restarts the bar once the displays have settled.

  6. Start it: brew services start sketchybar.

A complete bar built this way (workspace islands with app icons, front app, media, system stats) is in pseudobun/dotfiles → sketchybar/; its items/spaces.lua is the full version of paw_spaces.lua.

How it works: paw query --json lists every workspace with its windows. paw subscribe tells a bar when to read it again: one long-lived connection, a snapshot first, then one JSON line per event with a seq that counts up (a gap means lines were lost):

paw subscribe workspaceChanged,windowsChanged
{"data":{"display":1,"prev":"2","workspace":"3","workspaces":[…]},"event":"workspaceChanged","seq":2,"ts":…}

# a command per event, with $PAW_EVENT, $PAW_SEQ and $PAW_DATA; waits for paw and reconnects
paw subscribe workspaceChanged,windowsChanged --reconnect --exec 'sketchybar --trigger paw_$PAW_EVENT'

paw_spaces.lua starts that bridge itself, so there is nothing else to run. Any other bar can use the same two commands.

Overview

hyper+tab (or paw overview, or a middle-button drag up) covers every display: a search field, the display's workspaces as cards (● on screen, gold the focused one), and the selected workspace large with each window where it is. A stack shows its windows as icons; click one to go to it.

←↑→↓, pointing next window that way, on any display; past the edge ←→ go to the neighbouring workspace, ↑↓ to the previous / next one in number order (whatever display it is on)
⇥ / ⇧⇥, 1–9 next / previous workspace, workspace N
typing, ⌫ filter by app or title (the best match is selected), esc clears
⏎, click go to the window (or the workspace)
⇧⏎ bring the window to the workspace you're on
drag a window onto a card: send it there; onto the stage: drop zones as on the desktop (⌥ stacks)
drag on empty stage, ⇧-drag pick a region: the screen then shows the smallest branch holding every window it touches
double-click a card, + go to that workspace, new workspace
drag a card onto another card the two workspaces trade contents (3 → 5)
drag a card to another display move the whole workspace there
⌘E switch between the stage and the canvas: every workspace of a display side by side, scrolled left / right; pinch, ⌘-scroll or ⌘- / ⌘= zoom
esc, right click close

With Screen Recording allowed (overview.thumbnails), windows show as pictures, otherwise as their app's icon and colour.

Commands

Bindings and the CLI take the same commands; chain several with ; (paw 'workspace 3; layout bsp').

Command
focus west|east|north|south Focus the tile that way (next display at the edge)
focus stack.next|stack.prev|stack.first|stack.last Through the focused stack
focus back|forward Windows focused before (across workspaces)
find <text> Go to the window whose app or title matches best
swap <dir> Swap places with the window that way (to the next display at the edge)
swap stack.next|stack.prev Move the window down / up its stack
warp <dir> Move into that tile's place, splitting it
join <dir> [first] Move into the tile that way, splitting it across: | | | with the middle one joined east is | = (first: on top)
stack <dir> Put the window on the stack that way
unstack [all] Take the window (every window) out of its stack
layout bsp|columns|master|stack|float Layout of the focused workspace (again: re-tile)
undo, redo The focused workspace's last layout change
overview Every workspace and window (again: close)
zoom in|out Show the branch holding the focused window over the whole workspace (in: one level deeper), out: one level back up
toggle float|zoom|split Float, fill the workspace, flip the split
resize <dir> <points> Move that edge (negative shrinks)
balance, rotate 90|180|270
grid rows:cols:x:y:w:h Float the window into a grid cell
workspace <n>|next|prev|last|new|close Switch, add, close (its windows go to the previous one)
move-to <n>|next|prev [--follow] Send the window to a workspace
display <dir>|next|prev|<n> Focus a display
move-to-display <dir>|<n> [--follow] Send the window to a display's workspace
move-workspace next|prev|<n> Move the focused workspace's windows, tiles and layout to the next / previous workspace in the bar's order (past a display's last one: onto the next display) or to workspace N; the two trade contents and focus follows
move-workspace-to-display <dir>|next|prev|<n> (or move-workspace <dir>) Move the focused workspace, windows and all, to that display (it shows there; the display it left shows its next workspace)
arrange [workspace|all] Apply the preset(s), pulling their apps from other workspaces
initiate [setup] Open the preset apps and arrange every workspace (also reset); with a setup, use that one
mode <name>|exit Turn a key mode on (again: off) or off
retile, recover, reload
exec <shell command> Run something (exec open -a Terminal)

paw itself: paw status, paw query [--json], paw subscribe [events] [--reconnect] [--exec cmd], paw setups [--json], paw settings, paw hide|show (indicators), paw update, paw reload, paw config path|check|show|template|format, paw icon <app>, paw color <app>, paw theme [list|<name>], paw preview out.png, paw quit.

Development

just build | test | preview | log

Sources/PawCore is pure logic and unit tested: the weighted layout tree (insert, remove, swap, warp, stack, unstack, resize, seams, drops, anchors, snapshots, rotate, presets), drop zones, the overview's geometry, neighbours, commands, key specs, easing, config. Sources/paw: WM/ (accessibility, tracking, animator, bindings, workspaces, mouse: drop preview, seams, gestures), Stacks/ and UI/ (indicators, overview, HUD), App/ (socket, events), CLI/. just examples regenerates examples/config.json5 from the built-in template. Manual checks: TESTING.md.

See PERFORMANCE.md for what was measured. The main thread never waits on an app: every window move goes to that app's own queue (AXQueue), an app whose accessibility calls time out is skipped for a while (AXHealth), and the event taps run on a thread of their own. just bench measures it against the running dev build, with a few windows on workspaces 1 and 2:

just bench switch 200     # workspace switches: round trip, and until every window is on screen
just bench ops 200        # focus, swap, resize, layout changes, query
just bench hung TextEdit  # the same with TextEdit stopped, as a hung app would be

For controlled comparisons, profiling builds, saved raw results and current-user setup, see the benchmark runbook. just bench prepare only builds artifacts; just bench run launches the controlled scene. The workflow is prepared; its first live pilot and regression checks remain unexecuted pending explicit execution.

Releasing

Releases come from Conventional Commits on main. release-please keeps a release PR open that bumps VERSION and writes CHANGELOG.md: fix: bumps the beta number, feat: too (until 1.0), feat!: the minor version. Merging that PR tags the version and runs the release workflow: tests, a universal paw.app, Developer ID signing, notarization, the GitHub release, the Sparkle appcast (branch appcast) and the cask in pseudobun/homebrew-tap.

just release [tag] runs the release workflow by hand, e.g. to rebuild a tag.

Contributing

Issues and pull requests are welcome. Run just test before you open one, and go through the relevant parts of TESTING.md for anything that touches windows. Commit messages follow Conventional Commits.

Credits

App glyphs come from sketchybar-app-font. The Dock helper's loader follows yabai's scripting-addition loader, whose arm64e path is based on work by Jeremy Legendre. Ideas borrowed with thanks from yabai, AeroSpace and TrellisWM.

License

MIT © Urban Vidovič

About

Tiling window manager for macOS with virtual workspaces, presets and stack indicators

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages