// docs

Commands & config.

You never need any of this. Everything has a normal Mac window. This page is for people who like reading config files, and for the coding agent you ask to do it for you.

SetupConfig file[general][apps][hotkeys][rules][layouts][tile_hotkeys]TilesHotkey syntaxThe tilemode commandShortcutsFiles

Setup

Config file

Everything you set up, in the app or through an agent, lands in one plain-text file:

~/.config/tilemode/config.toml

Save it and Tilemode reloads. Change something in Settings and Tilemode writes it back without eating your comments. New Mac? Copy the file over and run tilemode apply. Missing web apps get rebuilt.

# Web apps: one table per app
[apps.mail]
url    = "https://mail.example.com"
hotkey = "opt+cmd+m"      # launch or focus
tile   = "left-half"      # where it snaps when it opens

[apps.chat]
url    = "https://chat.example.com"
hotkey = "opt+cmd+c"
tile   = "right-third"

# Hotkeys for native apps, by bundle id
[hotkeys]
"opt+cmd+e" = { bundle = "com.example.editor" }

# Named layouts: app name or bundle id, then a tile
[layouts.focus]
mail                 = "left-third"
"com.example.editor" = "right-two-thirds"

[general]

How Tilemode behaves. Every key has a default, so leave out anything you don't care about.

KeyDefaultWhat it does
launch_at_loginfalseStart Tilemode when you log in.
check_for_updatestrueLook for a new version once a day. Same as the Automatically check for updates switch in Settings.
animate_tilestrueGlide windows into place. false snaps instantly.
tile_gap0Points of space around and between tiles. Settings offers 0, 8, 16, 24.
window_style"slim"Web app windows: "slim" (thin bar) or "standard" (regular Mac title bar).
tile_mode_hotkey"ctrl+opt+space"Opens the tile cheat sheet.
agent_hotkey_enabledtrueTurns the agent hotkey on or off.
agent_hotkey"ctrl+opt+a"Opens your coding agent. See Agents.
agent_command[]The agent to run, as a list of words: ["my-agent", "--flag"]. Never one shell string. Also in Settings › Agents.
terminal_bundle_id"com.apple.Terminal"Which terminal the agent opens in.
new_app_hotkey"ctrl+opt+n"Starts a new web app.
layout_hotkey"ctrl+opt+l"Cycles layouts.
cycle_windowstruePressing an app's hotkey while it's in front cycles its windows.
hide_on_repeatfalsePressing it again hides the app instead.
leader_key""Set to "caps" for tap-then-a-letter hotkeys (leader+e).
auto_tilefalseTile new windows as they open. Off unless you turn it on.
onboarding_completefalseSet when you finish setup. Set it to false and setup shows again the next time Tilemode starts.

[apps.NAME]

A website turned into its own Mac app. It lives in ~/Applications/Tilemode Apps/, with its own icon, Dock spot, and logins.

KeyWhat it does
urlRequired. Where the app starts.
nameThe name in the Dock and Spotlight. Defaults to the table name.
hotkeyLaunch it if closed, focus it if open.
tileWhere it snaps when it opens. It never moves other windows.
iconPath to your own PNG. Otherwise Tilemode uses the site's icon.
user_css / user_jsYour own CSS or JavaScript, added to every page in that app only.
standard_user_agenttrue by default, so sites treat it like a regular browser.
bundle_idWritten by Tilemode (app.tilemode.web.NAME). Leave it alone.

[hotkeys]

Global hotkeys for any app on your Mac, matched by bundle id.

[hotkeys]
"opt+cmd+e" = { bundle = "com.example.editor" }
"leader+t"  = { bundle = "com.apple.Terminal" }

[rules.ID]

"This app always goes there." Matched when a window opens.

[rules.chat-right]
app     = "chat"              # a web app name, or…
# bundle = "com.example.editor"
title   = "^Inbox"            # optional: only windows whose title matches
tile    = "right-third"
display = 2                   # optional: displays start at 1

[layouts.NAME]

A saved arrangement. Keys are web app names or bundle ids, values are tiles. Save the one on screen with tilemode layout save NAME, bring it back with tilemode layout apply NAME.

[tile_hotkeys]

The always-on tile chords. They work any time, no panel needed. Rebind any of them here; anything you leave out keeps its default.

[tile_hotkeys]
focus_left       = "ctrl+opt+left"        # also focus_down / focus_up / focus_right
focus_h          = "ctrl+opt+h"           # also focus_j / focus_k
focus_l          = "ctrl+opt+cmd+l"       # ctrl+opt+l already cycles layouts
move_left        = "ctrl+opt+shift+left"  # every move_* is its focus_* plus shift
layout_1         = "ctrl+opt+1"           # through layout_6
fill             = "ctrl+opt+f"
previous_display = "ctrl+opt+leftbracket"
next_display     = "ctrl+opt+rightbracket"
exit_return      = "ctrl+opt+return"
exit_escape      = "ctrl+opt+escape"

Every name: focus_left focus_down focus_up focus_right focus_h focus_j focus_k focus_l move_left move_down move_up move_right move_h move_j move_k move_l layout_1…layout_6 fill previous_display next_display exit_return exit_escape.

Tiles & layouts

TileArea of the screen
left-half / right-halfLeft or right 50%. left and right work too.
top-half / bottom-halfTop or bottom 50%.
left-third / center-third / right-thirdOne third, full height.
left-two-thirds / right-two-thirdsTwo thirds, full height.
top-left / top-right / bottom-left / bottom-rightA quarter.
fillThe whole usable screen. Not macOS full screen.

Press ⌃⌥1 through ⌃⌥6 to arrange the windows on the current display:

1 · halves one left, rest stack right
2 · thirds three columns
3 · quarters 2×2 grid
4 · main + stack main left ⅔
5 · stack + main main right ⅔
6 · horizontal one top, rest below

Tiles fit the usable part of each display, menu bar and notch included.

Hotkey syntax

Modifiers joined with +, then one key. Modifiers: ctrl, opt, shift, cmd. Keys: letters, numbers, f1–f20, space, return, escape, tab, arrows, leftbracket, rightbracket, and friends. Not sure what a symbol means? See every Mac keyboard symbol.

Tilemode refuses chords macOS already owns, like cmd+space and the Mission Control chords, and tells you when two of yours clash.

The tilemode command

Built for coding agents and scripts. Add --json to anything for one JSON object on stdout. Anything that removes something needs --yes.

CommandWhat it does
tilemode app add <url> --name <name>
  [--hotkey <chord>] [--tile <tile>] [--icon <path>]
Turn a website into a Mac app.
tilemode app listList your web apps.
tilemode app remove <name> --yesRemove a web app.
tilemode hotkey set <chord> <app>Hotkey for a web app name or a bundle id.
tilemode hotkey unset <chord> --yesRemove a hotkey.
tilemode hotkey listEvery hotkey, built-ins included.
tilemode tile <app> <tile> [--display <n>]Snap a window now.
tilemode rule add <app> --tile <tile>
  [--display <n>] [--title <regex>]
Always snap that app there when it opens.
tilemode rule remove <app> --yesRemove the rule.
tilemode layout save | apply | listSave, restore, or list named layouts.
tilemode config showPrint the config.
tilemode applyApply config.toml in full. Rebuilds missing web apps.
tilemode doctorCheck permissions and setup.
tilemode license statusLicense state. Never prints your key.
tilemode license activate <key>Activate this Mac.
tilemode license deactivate --yesFree this Mac's seat.

Global flags: --json, --yes, --config <path>, --timeout <sec> (default 5). tile and layout save/apply need Tilemode running; config edits don't.

Exit codeMeaning
0OK
1Usage
2Config problem
3Tilemode isn't running
4Permission or license
5Not found
6Hotkey conflict
7Cancelled
8Failed

Default shortcuts

Tile chords work any time. ⌃⌥Space just opens the cheat sheet, and while it's open the bare keys work too.

KeysAction
⌃⌥ ← ↓ ↑ → or ⌃⌥ H J KFocus the window in that direction. Right on L is ⌃⌥⌘L.
⌃⌥⇧ ← ↓ ↑ → or ⌃⌥⇧ H J K LMove the window that way.
⌃⌥1 – ⌃⌥6Pick a layout.
⌃⌥FFill the screen.
⌃⌥[ / ⌃⌥]Previous / next display.
⌃⌥SpaceCheat sheet.
⌃⌥↩ / ⌃⌥EscClose the cheat sheet.
⌃⌥AOpen your coding agent.
⌃⌥NNew web app.
⌃⌥LCycle layouts.

Rebind any of them in config.toml.

Files

PathWhat
~/.config/tilemode/config.tomlYour setup. Edit freely.
~/Applications/Tilemode Apps/Your web apps.
~/Library/Application Support/Tilemode/License cache and the local socket. Don't hand-edit.

Stuck? support@tilemode.app