Settings
Every setting zterm reads, what it accepts, and what it does. Run zterm config --path to see where the file lives, and zterm config --init to write a copy with every key at its default, commented out.
zterm rejects the whole file if it finds a key it doesn't know, a value out of range, or a value of the wrong type. It then starts on its defaults and says what went wrong. zterm config --check reports the same problem without opening a window.
font_size
The size of the text in a pane, in logical pixels. zterm multiplies it by your display's scale factor to get the size it draws. Anything from 4.0 to 144.0.
- Accepts: a number from 4 to 144
- Default:
14.0
font_family
The font every pane is drawn in, by family name. Any monospaced font installed on this machine will do. If you leave this out, zterm uses the JetBrains Mono built into it. It also falls back to that font if the one you name isn't installed or isn't monospaced, and says so on the splash.
Leave this out and every machine gets the same cell size, because the font zterm measures is the one inside the binary. Name a font here and the cell size depends on what that machine has installed. If the font you pick is missing a character, zterm draws that character from the built-in font, so box drawing and block characters still line up. zterm ls-fonts <text> shows which font each character came from, and marks the ones from your font source: host.
- Accepts: the family name of any monospaced font installed here
- Default:
"JetBrains Mono"
theme
The name of a built-in theme, or of a theme file in themes/. The theme sets the colours of zterm's own furniture (tab bar, gutter, command palette, splash) and the sixteen colours a pane falls back to when a program doesn't pick its own.
dark light zterm's own two
github-dark github-light GitHub's Primer palettes
solarized-dark solarized-light Ethan Schoonover's Solarized
catppuccin-mocha catppuccin-latte Catppuccin
gruvbox-dark gruvbox-light Gruvbox
one-dark one-light Atom's One
"dark" and "light" are zterm's own, with the Zestful accent colour. The ten named after someone else use that vendor's accent instead. "light" is a neutral grey-white; "github-light" is the blue-tinted one.
Those ten are also files, in a "themes/" directory beside your config file, written there the first time zterm ran. Any *.toml in that directory is a theme, named after the file: themes/mine.toml means theme = "mine".
zterm theme --list the themes this zterm can draw
zterm theme --template dark > ~/.config/zterm/themes/mine.toml
Then edit the five values under [chrome]. All twelve themes have a template, including the two that aren't written into the directory.
If the name doesn't exist, or the theme file has an error, zterm starts with "dark" and prints which theme it wanted and what was wrong. Other settings refuse to load the whole file; this one only warns.
The command palette lists the themes by their display names, Zestful Dark, Solarized Dark, Catppuccin Mocha, and writes the spelling above into your config file. You can type either one to find a theme: "solarized-dark" works as well as "Solarized".
- Accepts: the name of any theme
zterm theme --listprints - Default:
"dark"
graphics
Draw images sent with the kitty graphics protocol. Turn this off and zterm still reads the images, keeps them, and answers a program that asks about them, so a program checking for support gets the same answer either way. It just doesn't draw them. The icon on a pane's tab chip is zterm's own, not one of these images, so it shows either way.
- Accepts:
trueorfalse - Default:
true
splash
Show the welcome screen when a window opens: the [z]term wordmark and the hint about the command palette. It stays for 1.5 seconds and fades over the next 0.25, and any key or click starts the fade early.
zterm --nosplash and ZTERM_NO_SPLASH=1 turn it off for one launch. This key turns it off for every window, including windows another zterm opens for you. All three can only switch the splash off: if any one of them says no, there is no splash, and setting splash = true here won't override the other two.
- Accepts:
trueorfalse - Default:
true
ticket_links
Link ticket names to the zc board. If you run zc, the coordination board, a ticket name in a pane's output (ACME-13, say) becomes a link to that ticket on the board's dashboard. Hold Cmd (Ctrl+Shift on Linux and Windows) and click it, as you would a web address.
Only a ticket that exists on your board is a link. zterm asks the zc daemon on this machine which ticket names exist, so UTF-8, SHA-256 and another tool's ticket numbers stay plain text. With no zc daemon, or with the zc dashboard off, nothing is linked.
To know which names exist, zterm asks the daemon every few seconds while it runs. Set this to false to stop it asking.
- Accepts:
trueorfalse - Default:
true
send_events
Send terminal events, such as a pane opening or closing, to the Zestful daemon on this machine. Off unless you turn it on: a running daemon does not turn it on. Setting the ZESTFUL_EVENTS_URL environment variable also sends events, to that address, whatever this says. See the events page.
- Accepts:
trueorfalse - Default:
false - takes effect at restart
restore_agents
When zterm starts, reopen the agents that were running when it last stopped, whether it was quit, updated or crashed: each comes back in its own tab with its name and folder, and carries on its conversation. The tab runs your login shell, which stays when the agent exits, as a tab the + menu spawned does. The tabs open in the first window, in the order they were in. The shell tab zterm opens at start closes when the first agent is back, and that agent's tab is the one showing. An agent opened by another agent is that agent's child again once both are back, so they reach each other as they did before. Web pages come back too: a pane opened with --web reopens in its tab, showing the same folder and file, with its name. A page that was in a split comes back in a tab of its own. A page that used a service on this machine (a profile's backend) comes back only while a profile still gives that folder one, and otherwise stays closed. A page whose folder is gone comes back as a short page that names the folder. The zc dashboard comes back at the address zc gives it then, or as a page saying how to reopen it if zc has not answered yet. Any other page opened at an address (--url) does not come back. Windows, splits and unnamed terminal panes are not restored, and neither is a group the person approved at launch: they are asked again. Only agents started with zspawn come back, and only while they run: an agent that ended in a tab whose shell stayed open, such as one started by typing zspawn at a shell prompt, loses its name in that tab and is not reopened. Off, nothing reopens by itself, and zspawn restore <name> brings one back by hand. Read when zterm starts.
- Accepts:
trueorfalse - Default:
false - takes effect at restart
default_terminal
On Windows, make zterm the default terminal: a program that opens a console window of its own (a double-clicked script, a tool's installer, a script that asks to run as administrator) opens as a tab in zterm instead. Turning it off puts back whichever terminal was the default before. Windows' own Settings page can't offer zterm, so this is where to change it. zterm ignores this key on macOS and Linux.
- Accepts:
trueorfalse - Default:
false
option_as_alt
On a Mac, which Option keys act as Alt: "none", "left", "right" or "both". zterm ignores this key on Linux and Windows.
The Option key has two jobs. It types the extra characters of your keyboard layout: Option+3 is # on a UK keyboard, and Option+L is @ on a German one. It is also the Alt key that programs in a terminal expect: Alt+F moves forward one word in a shell.
With "none", both Option keys type characters, as they do in every other Mac app. With "both", both are Alt, and you lose the characters. "left" and "right" make that one key Alt and leave the other for typing characters. Option with an arrow key, Backspace or Delete is Alt whatever you choose here.
- Accepts: one of
none,left,right,both - Default:
"none"
remember_window
What zterm remembers about its window when you quit, for the next time it starts: "size" keeps the window's size and whether it was maximized, "size_and_position" keeps where it was too, and "off" opens every launch at the default size and place. A remembered size is fitted to the screen the window opens on. A remembered place is used only if it is still on a monitor; if not, the window opens where a new one would, at its remembered size. With several windows open, the last one you close is remembered. zterm saves the window under [window] below, as it saves panel_width.
- Accepts: one of
size,size_and_position,off - Default:
"size"
panel
The panel on the left edge of every window: "full" shows the zc dashboard beside your panes, "minimal" narrows it to a column, and "hidden" removes it. The panel's button switches between "full" and "minimal" in its own window, and saves the choice here for the next window you open. Changing this setting sets every open window. Only this setting hides the panel, and only this setting brings it back. Drag the panel's edge to make it wider or narrower; drag it most of the way in and it goes to "minimal", and drag back out for "full". A full panel narrows as the window does, to leave 40 terminal columns, and a window too narrow for that draws "minimal" without changing this value. A window that cannot run a web view draws "hidden" without changing it too: a native Wayland window on Linux, the AppImage, Windows without the WebView2 runtime. The panel has no keys: a click in it hands the keyboard back to your pane, unless the click lands in a text field.
- Accepts: one of
full,minimal,hidden - Default:
"full"
panel_width
The full panel's width, in logical pixels: dragging the panel's edge sets it, and zterm saves it here when you let go, so new windows and the next start keep it. A window too narrow for it draws the panel narrower without changing this value. From 240 to 4096.
- Accepts: a number from 240 to 4096
- Default:
360.0
match_system
Follow the system's light and dark. "theme" names the family, and zterm draws its dark variant while the system is dark and its light one while it is light: "dark" and "light", "github-dark" and "github-light", "catppuccin-mocha" and "catppuccin-latte". A theme of yours follows too if it is named the same way, "mine-dark" and "mine-light". A theme with no such pair stays as it is. On Linux this reads the desktop's appearance portal.
- Accepts:
trueorfalse - Default:
false
minimum_contrast
The lowest contrast text in a pane may have against its background, as a contrast ratio from 1.0 to 21.0. Text under it is lightened on a dark background, or darkened on a light one, just enough to reach it; the background is never changed. This catches text a theme draws in its own background colour, such as the bright black in a Solarized Dark theme file from an earlier zterm, which programs use for grey text. zterm can't tell a theme's colour from one a program chose, so both are adjusted, and text a program hides by drawing it in its background colour shows. Text hidden with the terminal's conceal attribute (SGR 8), as a password prompt does, stays hidden. 1.0 turns this off.
- Accepts: a number from 1 to 21
- Default:
1.5
native_wayland
On a Linux Wayland session, zterm runs as an X11 client under XWayland, because the panel and web panes need an X11 window. Programs you run in a pane still see Wayland. Text can look softer at fractional scaling, and the Wayland input methods and window behaviour don't apply. Set this to true for a native Wayland window, with the panel hidden and no web panes. It takes effect at the next start. zterm ignores this key on macOS and Windows.
- Accepts:
trueorfalse - Default:
false
pane_access_control
What a program in one pane may type into, read and control in another pane without zterm asking you first: "siblings", "children", "always_ask" or "open". The default is "siblings".
A pane's creator is whatever asked zterm to open it. When a program opens a pane, that program is the creator; when you open one yourself, by hand or from the Spawn menu, you are.
With "siblings", a pane reaches the panes it opened itself, the panes opened beside it by the same creator, and the pane its creator was running in. One step in each direction, and no further: a pane two steps down does not reach the top. A group of agents started by one leader works without a single question, and the leader's pane is reachable from each of them. Panes you opened yourself are reached by nothing, because you are not running in a pane.
With "children", a pane reaches only the panes it opened itself. A leader reaches the agents it started, and every other direction asks, including an agent answering its leader.
With "always_ask", a pane reaches nothing but itself.
With "open", every program running in a pane can act on every pane you have open, including reading what is on their screens, and nothing is asked. That is a package postinstall, a curl | sh, and any tool you run in zterm. It was the default in earlier releases and is not one now; the changelog says which release moved it.
Whatever you choose, a program always reaches its own pane, and a grant you give in the permissions list is reached under every value. A program running in no pane, such as a script started from another terminal app, is asked about before it types into a pane or reads one, under every value, "open" included; zterm serve, which has no window to ask in, refuses it. On zterm serve, a program in one of its own panes may read any pane there, as a machine in the mesh may, but needs a grant to type into or control one. A program on another machine is never covered by this key and always needs a grant.
- Accepts: one of
siblings,children,always_ask,open - Default:
"siblings"
pane.padding_x
The space inside the edge of every pane, measured in cells. Each pane has its own, so where two panes meet in a split you see twice this much. Anything from 0.0 to 20.0.
- Accepts: a number from 0 to 20
- Default:
1.0
pane.padding_y
The space inside the edge of every pane, measured in cells. Each pane has its own, so where two panes meet in a split you see twice this much. Anything from 0.0 to 20.0.
- Accepts: a number from 0 to 20
- Default:
0.5
pane.title_bar
When a pane shows the one-line title strip along its top edge. "auto" shows it when the pane is in a split, shows a web page or runs on another machine, "always" shows it everywhere, "never" hides it. A web page's strip has Back, Forward, Reload and Open in Browser buttons. A pane on another machine shows that machine's name before its title. "never" hides a web page's strip too; the command palette's Pane group then has Reload Page, Go Back, Go Forward and Open in Browser while the web pane has focus.
- Accepts: one of
auto,always,never - Default:
"auto"
pane.scrollbar
When a pane with scrollback shows its scrollbar, in the gutter along its right edge. "auto" shows it while you are scrolled back, and for a moment after you scroll or while the pointer is over that gutter. "always" shows it whenever the pane has scrollback, "never" hides it. Drag the bar or click above or below it to scroll.
- Accepts: one of
auto,always,never - Default:
"auto"
window.opacity
How solid the window is: 0.0 is fully transparent, 1.0 is fully opaque. Only backgrounds go transparent, so text stays readable.
- Accepts: a number from 0 to 1
- Default:
1.0
window.width
The window's size and place when it was last resized, moved or closed, in logical pixels: width and height inside the window, x and y its top left corner. zterm writes these five itself, as remember_window says, so there is no need to set them; if you do, the next resize writes over them. Only the default zterm saves them, never one started with --instance.
- Accepts: a number from 1 to 32768
- Default: not set
- takes effect at restart
window.height
The window's size and place when it was last resized, moved or closed, in logical pixels: width and height inside the window, x and y its top left corner. zterm writes these five itself, as remember_window says, so there is no need to set them; if you do, the next resize writes over them. Only the default zterm saves them, never one started with --instance.
- Accepts: a number from 1 to 32768
- Default: not set
- takes effect at restart
window.x
The window's size and place when it was last resized, moved or closed, in logical pixels: width and height inside the window, x and y its top left corner. zterm writes these five itself, as remember_window says, so there is no need to set them; if you do, the next resize writes over them. Only the default zterm saves them, never one started with --instance.
- Accepts: a number from -65536 to 65536
- Default: not set
- takes effect at restart
window.y
The window's size and place when it was last resized, moved or closed, in logical pixels: width and height inside the window, x and y its top left corner. zterm writes these five itself, as remember_window says, so there is no need to set them; if you do, the next resize writes over them. Only the default zterm saves them, never one started with --instance.
- Accepts: a number from -65536 to 65536
- Default: not set
- takes effect at restart
window.maximized
The window's size and place when it was last resized, moved or closed, in logical pixels: width and height inside the window, x and y its top left corner. zterm writes these five itself, as remember_window says, so there is no need to set them; if you do, the next resize writes over them. Only the default zterm saves them, never one started with --instance.
- Accepts:
trueorfalse - Default:
false - takes effect at restart
idle.debounce_ms
How long a pane has to go without anyone typing into it, in milliseconds, before a waiting write is let through. A pane with a line typed and not yet sent or cleared is not idle however long it waits; this counts from the Enter, Ctrl+C or Ctrl+U that ended it. Zero works: the write goes through once there is no unsent line and no keystroke arriving at that moment.
- Accepts: a whole number
- Default:
2000
notifications.command_finished
Post a desktop notification when a command finishes. zterm knows a command finished from shell integration's OSC 133 D mark. No banner is posted for the pane you're looking at. Clicking the banner brings that pane forward.
- Accepts:
trueorfalse - Default:
false
notifications.min_duration_ms
Don't notify about commands that finish in less than this many milliseconds. The default of ten seconds keeps banners off quick commands like ls.
- Accepts: a whole number
- Default:
10000
notifications.on_request
Post a desktop notification when a program in a pane asks for one, using OSC 777 (notify) or iTerm2's OSC 9. Turn this off and the message still shows up in the pane; you just don't get the system banner.
- Accepts:
trueorfalse - Default:
true
notifications.needs_banner
Post a desktop notification when something new joins the panel's Needs you list, such as an agent asking for permission or a question waiting on you. Each item posts once. Clicking the banner brings that agent's pane forward, or opens its pull request or ticket.
- Accepts:
trueorfalse - Default:
true
notifications.publish
Report what each pane says it is running, and how the last command exited, on the local control socket. zterm ls reads them from there.
- Accepts:
trueorfalse - Default:
true
pill.show
Start the pill with zterm. Turning it off closes a pill that is running.
- Accepts:
trueorfalse - Default:
true
pill.remember_position
Keep the pill where you last dragged it, the next time it starts. Off, it starts at the top centre of the main screen.
- Accepts:
trueorfalse - Default:
false
default_profile
The profile a new window's first tab and the + button open, by name, so zterm doesn't have to ask. zterm serve opens its first pane with it too. If you leave it out, a new window opens your OS's default shell, and + opens the first profile in the profiles list, or the default shell if there are no profiles. Splits always open the default shell. A name that matches no profile is an error.
- Accepts: text
- Default: not set
profiles
The kinds of terminal this machine can open, offered when you make a new tab or pane. Leave this out and zterm asks the OS: the shells in /etc/shells on macOS and Linux, and whatever shells it can find on Windows. Writing profiles here replaces that list instead of adding to it, so if you list one shell, one shell is all you get.
name what the menu says, and the name default_profile uses
program the executable, looked up on PATH the way a shell would
args arguments to pass it (none if you leave this out)
cwd the directory the pane starts in; left out, zterm picks as usual
kind "shell" (the default) starts it as a login shell;
"command" runs just the program and arguments you gave;
"web" shows a page instead: no program, a dir
dir for kind = "web": the directory the pane shows
entry for kind = "web": the file in dir to open, index.html if left out
backend for kind = "web": "zc" sends the page's /v1/ requests to the zc
daemon on this machine, so the zc dashboard runs in the pane.
zc web --dir <dir> writes the dashboard page into dir
- Accepts: see the description
- Default: not set
web.remote
Sites on other machines a web pane may show, by host. With "canva.com" here, zterm perform new_tab --url https://www.canva.com opens Canva in a pane. An entry admits that host and every host under it (canva.com admits www.canva.com), over https only. A link that takes the page to a host not listed opens in your browser; frames inside the page load where they are. List a sign-in host a site sends you through, such as accounts.google.com, to keep that sign-in in the pane. Downloads go to your Downloads folder. Only this file adds a host. On Linux, web panes show only pages on this machine for now.
- Accepts: see the description
- Default:
[]
keybindings
What a keypress should do: the keys on the left, the action on the right. A line here wins over zterm's built-in bindings, whatever they say, and fires whenever you press that combination. To switch a built-in binding off, bind it to "unbound".
Spell the keys out literally; the same spelling means the same keys on every platform. The modifiers are ctrl, shift, alt and super, and you can write cmd, opt, option, win or control instead. The action names are the ones zterm bindings prints. An action zterm doesn't recognise stops the file loading, and the error names the closest real action. docs/user/zterm/reference/keybindings.md has the full spelling rules, and every chord this build binds.
- Accepts: a table of chords
- Default: not set