Batuta

macOS Stage Manager is great, it was just missing Batuta.

HotkeyTap.swift — batuta
SHotkeyTap.swift
SStageStrip.swift
STilingLayouts.swift
1import AppKit
2@preconcurrency import CoreGraphics
3
4enum Direction {
5 case left, right, up, down
6
7 init?(keyCode: Int64, keys: DirectionKeys) {
8 switch (keys, keyCode) {
9 case (.arrows, 123), (.hjkl, 4): self = .left
10 case (.arrows, 124), (.hjkl, 37): self = .right
11 case (.arrows, 125), (.hjkl, 38): self = .down
12 case (.arrows, 126), (.hjkl, 40): self = .up
13 default: return nil
14 }
15 }
16}
17
18private enum KeyCode {
19 static let returnKey: Int64 = 36
20 static let escape: Int64 = 53
21 static let keypadPlus: Int64 = 69
22 static let keypadMinus: Int64 = 78
23}
24
25/// Global keyboard tap. It only swallows keys Batuta handles.
26@MainActor
27final class HotkeyTap {
28 var onDirection: ((Direction) -> Void)?
29 var onMoveDirection: ((Direction) -> Void)?
30 var onCycleTilingMode: (() -> Void)?
31 var onStageNumber: ((Int) -> Void)?
32 var onResize: ((_ grows: Bool) -> Void)?
33 var isPickingStage: () -> Bool = { false }
34}
⎇ main⊘ 0 ⚠ 0Ln 9, Col 42Spaces: 4UTF-8Swift
~/batuta — zsh — 96×32
~/batuta main $ make run
Building for debugging...
[42/42] Linking Batuta
Build complete! (3.81s)
~/batuta main $ git log --oneline -3
08c33fe Wrap around inside the stage picker
1463be8 Custom one-window layout for Messy
d6f0f55 Treat small moves as the layout
~/batuta main $
‹ ›
🔒 fieldnotes.blog/stages
⇪ +
Workflow · 6 min read

Keep every project on its own stage

One stage for code, one for mail, one for music. Switching context becomes a single key press.

The trick is not to fight the window manager. Group what belongs together, give each group a home, and let the layout take care of itself. When a new window shows up, it should find its place without you dragging anything.

After a week the keyboard is the fastest way around: left and right between windows, up and down between stages.

25 November 2026 at 9:12

Stage ideas

One stage per project, so switching is one key press.

  • Editor and terminal side by side
  • Music in a stage of its own
  • Mail only after lunch
  • Try BSP when a stage has 4+ windows

Messy mode for the browser and notes: they can overlap, it feels like a real desk.

⇄⏮⏸⏭↻
Glass HarborLow Tide Club — Afterglow

Listen Now

Top Picks

Night DriveNeon Atlas
Paper MoonsJuniper & Vale
Slow BloomMarigold
Static HeartsThe Overpass

Recently Played

Static HeartsThe Overpass
Blue HourOdessa Rain
WildflowerSunny Hollow
Echo ChamberKites
Inbox5 messages, 3 unread
Lucía Ferreira
Design review moved to Thursday
Hi! Can we push the review to Thursday? The new tiling…
Build Bot
main passed: 42 checks
All checks passed for 08c33fe Wrap around inside the…
Tomás Ruiz
Stage Manager tips
Saw your post about keeping a stage per project…
Nora Lind
Lunch on Friday?
There's a new ramen place near the office…
Fieldnotes
This week: calmer desktops
Five small habits that keep your screen tidy…
LF
Lucía FerreiraTo: me · 9:04

Design review moved to Thursday

Hi!

Can we push the review to Thursday? The new tiling modes need one more pass, and I want to try Messy on the big screen first.

I'll bring the custom layouts we drew last week.

Thanks,
Lucía

AAna
Today 9:18
ship it?
one more tiling mode
you said that yesterday 😅
this one is messy on purpose
ok that's actually nice
Message
YearsMonthsAll Photos
Saturday · 21 Nov 2026

Batuta tiles every stage for you. This one is Messy: loose, hand-drawn layouts where windows can overlap.

Download for macOSor install with Homebrew

A tiling manager that takes a hint

Drag or resize a window with your mouse and it stays right there. Most tiling managers act like window bosses and snap everything back into their grid. Batuta tiles when you ask, then gets out of your way.

Mon
Tue
Wed
Thu
Fri
Sat
Sun
Other tiling managersSnaps back
Mon
Tue
Wed
Thu
Fri
Sat
Sun
BatutaStays where you put it

Coming from Vim? hjkl, my friend

Arrows by default, home row if you like. Switch the direction keys to hjkl and pick your own modifiers, so your fingers never leave the keys they already know.

⌃⌥⌘
+
H←
focus left
J↓
stage down
K↑
stage up
L→
focus right

Dotfiles friendly

Every setting and every shortcut lives in one plain JSON file. Keep it in your dotfiles, leave out what you don't care about, and edit it by hand: Batuta reloads it the moment you save.

~/.config/batuta/config.json
{
  "modifiers": ["control", "command"],
  "moveModifier": "shift",
  "directionKeys": "hjkl",
  "openStageOn": "release",
  "modeShortcuts": {
    "even": {
      "keyCode": 32,
      "keyLabel": "U",
      "modifiers": ["control", "option", "command"]
    },
    "messy": {
      "keyCode": 34,
      "keyLabel": "I",
      "modifiers": ["control", "option", "command"]
    }
  },
  "tiling": {
    "mode": "messy",
    "leaveRoomForStageManager": true
  }
}