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.
Setup
- Requirements: macOS 14 or later.
- Install. Download Tilemode.dmg, open it, and drag Tilemode to Applications. Then open Tilemode from Applications.
- License first. Setup asks for your key, then walks you through Accessibility, the command line, the skill file, and the agent hotkey. Tilemode stays locked until this Mac has a license.
- Accessibility lets Tilemode move and resize windows. Allow it in System Settings › Privacy & Security › Accessibility. Tilemode never reads what's in your windows.
- The
tilemodecommand comes inside the app. Setup offers to link it into/usr/local/bin(or~/.local/bin). Skip it if you like.
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.
| Key | Default | What it does |
|---|---|---|
| launch_at_login | false | Start Tilemode when you log in. |
| check_for_updates | true | Look for a new version once a day. Same as the Automatically check for updates switch in Settings. |
| animate_tiles | true | Glide windows into place. false snaps instantly. |
| tile_gap | 0 | Points 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_enabled | true | Turns 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_windows | true | Pressing an app's hotkey while it's in front cycles its windows. |
| hide_on_repeat | false | Pressing it again hides the app instead. |
| leader_key | "" | Set to "caps" for tap-then-a-letter hotkeys (leader+e). |
| auto_tile | false | Tile new windows as they open. Off unless you turn it on. |
| onboarding_complete | false | Set 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.
| Key | What it does |
|---|---|
| url | Required. Where the app starts. |
| name | The name in the Dock and Spotlight. Defaults to the table name. |
| hotkey | Launch it if closed, focus it if open. |
| tile | Where it snaps when it opens. It never moves other windows. |
| icon | Path to your own PNG. Otherwise Tilemode uses the site's icon. |
| user_css / user_js | Your own CSS or JavaScript, added to every page in that app only. |
| standard_user_agent | true by default, so sites treat it like a regular browser. |
| bundle_id | Written 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
| Tile | Area of the screen |
|---|---|
| left-half / right-half | Left or right 50%. left and right work too. |
| top-half / bottom-half | Top or bottom 50%. |
| left-third / center-third / right-third | One third, full height. |
| left-two-thirds / right-two-thirds | Two thirds, full height. |
| top-left / top-right / bottom-left / bottom-right | A quarter. |
| fill | The whole usable screen. Not macOS full screen. |
Press ⌃⌥1 through ⌃⌥6 to arrange the windows on the current display:
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.
opt+cmd+m→ ⌥⌘Mctrl+opt+space→ ⌃⌥Spaceleader+e→ tap your leader key, then E
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.
| Command | What it does |
|---|---|
| tilemode app add <url> --name <name> [--hotkey <chord>] [--tile <tile>] [--icon <path>] | Turn a website into a Mac app. |
| tilemode app list | List your web apps. |
| tilemode app remove <name> --yes | Remove a web app. |
| tilemode hotkey set <chord> <app> | Hotkey for a web app name or a bundle id. |
| tilemode hotkey unset <chord> --yes | Remove a hotkey. |
| tilemode hotkey list | Every 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> --yes | Remove the rule. |
| tilemode layout save | apply | list | Save, restore, or list named layouts. |
| tilemode config show | Print the config. |
| tilemode apply | Apply config.toml in full. Rebuilds missing web apps. |
| tilemode doctor | Check permissions and setup. |
| tilemode license status | License state. Never prints your key. |
| tilemode license activate <key> | Activate this Mac. |
| tilemode license deactivate --yes | Free 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 code | Meaning |
|---|---|
| 0 | OK |
| 1 | Usage |
| 2 | Config problem |
| 3 | Tilemode isn't running |
| 4 | Permission or license |
| 5 | Not found |
| 6 | Hotkey conflict |
| 7 | Cancelled |
| 8 | Failed |
Default shortcuts
Tile chords work any time. ⌃⌥Space just opens the cheat sheet, and while it's open the bare keys work too.
| Keys | Action |
|---|---|
| ⌃⌥ ← ↓ ↑ → or ⌃⌥ H J K | Focus the window in that direction. Right on L is ⌃⌥⌘L. |
| ⌃⌥⇧ ← ↓ ↑ → or ⌃⌥⇧ H J K L | Move the window that way. |
| ⌃⌥1 – ⌃⌥6 | Pick a layout. |
| ⌃⌥F | Fill the screen. |
| ⌃⌥[ / ⌃⌥] | Previous / next display. |
| ⌃⌥Space | Cheat sheet. |
| ⌃⌥↩ / ⌃⌥Esc | Close the cheat sheet. |
| ⌃⌥A | Open your coding agent. |
| ⌃⌥N | New web app. |
| ⌃⌥L | Cycle layouts. |
Rebind any of them in config.toml.
Files
| Path | What |
|---|---|
| ~/.config/tilemode/config.toml | Your 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