此页面尚未翻译。以下正文为英文。
Configuration reference
Home · User guide · Preferences · Shortcuts · Rules
Tessera reads one YAML file (tessera.yml). You can also change almost every option in the Preferences window, which writes valid changes automatically.
Full annotated template: Download tessera.example.yml. This YAML file documents types, ranges, and defaults for all 106 configuration options.
Quick start
- If the file is missing, Tessera runs with built-in defaults.
- Tessera preserves unknown or platform-specific keys on save and reports them as diagnostics. It never drops them silently.
- Invalid or out-of-range values do not block startup: Tessera reports the issue, keeps the value in the file, and falls back to the default.
- Custom JavaScript layouts live in a
layouts/folder next totessera.yml(Custom JavaScript layouts).
File location
| System | Path |
|---|---|
| Linux | $XDG_CONFIG_HOME/tessera/tessera.yml (defaults to ~/.config/tessera/tessera.yml) |
| macOS | ~/Library/Application Support/Tessera/tessera.yml |
| Windows | %APPDATA%\Tessera\tessera.yml (or %HOME%\.config\tessera\tessera.yml if that file already exists) |
Reloading without restarting
| System | Command or action |
|---|---|
| Linux | systemctl --user reload tessera, tessera service reload, or relaunch-controller (mod2 + z) |
| macOS | tessera service reload, Restart Tessera in the tray menu, or relaunch-controller (mod2 + z) |
| Windows | Restart Tessera in the tray menu |
Tiling & margins
These keys control whether tiling is active, window gaps, minimum sizes, and screen-edge padding.
tiling-enabled: true
window-margins: true
smart-window-margins: true
window-margin-size: 8
screen-padding-top: 8
| Key | Type | Default | Effect |
|---|---|---|---|
tiling-enabled |
boolean | true |
Enables or pauses automatic window tiling. |
window-max-count |
integer ≥ 0 | 0 |
Maximum tiled windows per workspace (0 = unlimited). |
window-margins |
boolean | false |
Adds gap spacing between tiled windows. |
smart-window-margins |
boolean | false |
Applies margins only when more than one tiled window is visible. |
window-margin-size |
integer ≥ 0 | 0 |
Gap between tiled windows in pixels. |
window-minimum-width |
integer ≥ 0 | 0 |
Minimum width in pixels for tiled windows (0 = disabled). |
window-minimum-height |
integer ≥ 0 | 0 |
Minimum height in pixels for tiled windows (0 = disabled). |
screen-padding-top |
integer ≥ 0 | 0 |
Top screen-edge padding in pixels. |
screen-padding-right |
integer ≥ 0 | 0 |
Right screen-edge padding in pixels. |
screen-padding-bottom |
integer ≥ 0 | 0 |
Bottom screen-edge padding in pixels. |
screen-padding-left |
integer ≥ 0 | 0 |
Left screen-edge padding in pixels. |
disable-padding-on-builtin-display |
boolean | false |
Skips screen padding on the built-in laptop screen. |
ignore-menu-bar |
boolean | false |
Ignores panels, docks, and struts when computing work areas. |
Window filtering & overflow
These keys define which windows float instead of tiling, automatic workspace assignments, and overflow behavior.
floating:
- "Calculator"
- id: "org.xfce.terminal"
window-titles: ["Preferences"]
floating-is-blacklist: true
float-small-windows: true
small-window-size: 500
overflow-policy: move-to-output
| Key | Type | Default | Effect |
|---|---|---|---|
floating |
list | [] |
Application or title patterns that float instead of tiling (see Rules). |
floating-is-blacklist |
boolean | true |
true floats listed windows. false tiles only listed apps (whitelist). |
float-small-windows |
boolean | true |
Automatically floats windows when both width and height are below small-window-size. |
small-window-size |
integer ≥ 0 | 500 |
Pixel threshold for float-small-windows (<= 0 falls back to 500). |
workspace-assignments |
list | [] |
Ordered rules assigning newly opened windows to workspaces. |
overflow-policy |
enum | move-to-output |
Action when windows exceed capacity: move-to-output (move to another output), float (leave floating), shrink-neighbors (shrink tiled neighbors), or minimize (minimize extra windows). |
overflow-hud-warning |
boolean | false |
Shows a HUD alert when the overflow policy triggers. |
Layouts & workspaces
These keys configure the layout cycle, startup restoration, and per-workspace memory.
layouts:
- tall
- wide
- fullscreen
- column
per-workspace-layouts: true
restore-layouts-on-launch: true
| Key | Type | Default | Effect |
|---|---|---|---|
layouts |
list | tall, wide, fullscreen, column |
Ordered list of layout keys that cycle-layout cycles through. |
active-layout |
string | (empty) | Last active layout key resumed on startup (empty = first in layouts). |
restore-layouts-on-launch |
boolean | true |
Restores saved layout assignments per output on startup. |
per-workspace-layouts |
boolean | true |
Remembers each workspace’s layout, main ratio, and main count separately. |
new-windows-to-main |
boolean | false |
Inserts newly opened windows into the main pane instead of the stack. |
tessera-output-layouts |
mapping | {} |
Persistent map of output names to layout keys (Tessera manages this automatically). |
tessera-workspace-layouts |
mapping | {} |
Persistent map of workspace indices to layout keys (Tessera manages this automatically). |
Mouse & focus
These keys control pointer-driven focus, drag-to-swap, drag-to-resize, and the keyboard resize step.
| Key | Type | Default | Effect |
|---|---|---|---|
window-resize-step |
float (1.0–100.0) |
5.0 |
Percentage step for expand-main and shrink-main. |
mouse-follows-focus |
boolean | false |
Moves the pointer to the center of newly focused windows. |
focus-follows-mouse |
boolean | false |
Focuses the window under the pointer. |
mouse-swaps-windows |
boolean | false |
Dragging one tiled window onto another swaps their slots. |
mouse-resizes-windows |
boolean | false |
Dragging a tiled window border resizes its pane. |
follow-space-thrown-windows |
boolean | true |
Switches focus to the target workspace when throwing a window. |
follow-monitor-thrown-windows |
boolean | false |
Switches focus to the target monitor when throwing a window. |
HUD, appearance & language
These keys control the on-screen HUD, tray icon, window decorations, UI look, and localization. See Tray and HUD.
| Key | Type | Default | Effect |
|---|---|---|---|
enables-layout-hud |
boolean | true |
Shows the HUD when cycling or selecting layouts. |
enables-layout-hud-on-space-change |
boolean | true |
Shows the HUD when switching workspaces. |
enables-window-count-hud |
boolean | false |
Shows the managed window count in the layout HUD. |
hud-duration-ms |
integer (600–5000) |
1200 |
How long the HUD stays visible, in milliseconds. |
notification-style |
enum | system |
Notification channel: system or hud. |
hide-menu-bar-icon |
boolean | false |
Hides the system tray / menu-bar icon. |
window-decorations |
enum | keep |
Title bars and borders on tiled windows: keep or hide-tiled. |
language |
string | auto |
Locale override (auto, en, pt-BR, es, fr, de, it, ru, zh-CN, ja, ko). Order: TESSERA_LANG → language → system → en. |
ui-style |
enum | auto |
Interface look: auto, gtk, adwaita, qt, appkit, or winui (TESSERA_UI overrides). |
debug-layout-info |
boolean | false |
Enables verbose layout geometry logging. |
AI agents (MCP server)
These keys configure the embedded Model Context Protocol server on Linux and macOS. See AI agents.
| Key | Type | Default | Effect |
|---|---|---|---|
mcp-enabled |
boolean | false |
Enables the embedded MCP server. |
mcp-mode |
enum | read-only |
read-only inspects state. control also allows window and layout mutations. |
mcp-allowed-tools |
list | [] |
Allowlist of exposed tool names (empty = all tools permitted by mcp-mode). |
Modifier groups & shortcuts
Modifier groups (mod1–mod4) map logical chord names to physical modifiers: option (Alt), shift, control (Ctrl), and command (Super). Tessera also accepts alt, ctrl, and super as aliases for option, control, and command. Every shortcut binding takes { mod: mod1..mod4, key: "<key>" } or false to disable it. See Shortcuts for key names and conflict detection.
mod1: [option, shift]
mod2: [option, shift, control]
cycle-layout:
mod: mod1
key: space
swap-screen-1: false
Modifier groups
| Key | Default | Effect |
|---|---|---|
mod1 |
[option, shift] |
Primary modifier group. |
mod2 |
[option, shift, control] |
Secondary modifier group. |
mod3 |
(unset) | Optional third modifier group. |
mod4 |
(unset) | Optional fourth modifier group. |
Command shortcuts
| Key | Default | Effect |
|---|---|---|
cycle-layout |
mod1 + space |
Cycle forward through layouts. |
cycle-layout-backward |
mod2 + space |
Cycle backward through layouts. |
select-tall-layout |
mod1 + a |
Switch directly to tall. |
select-wide-layout |
mod1 + s |
Switch directly to wide. |
select-fullscreen-layout |
mod1 + d |
Switch directly to fullscreen. |
select-column-layout |
mod1 + f |
Switch directly to column. |
shrink-main |
mod1 + h |
Decrease main-pane ratio. |
expand-main |
mod1 + l |
Increase main-pane ratio. |
increase-main |
mod1 + , |
Increase windows in the main pane. |
decrease-main |
mod1 + . |
Decrease windows in the main pane. |
focus-ccw |
mod1 + j |
Focus previous window. |
focus-cw |
mod1 + k |
Focus next window. |
focus-main |
mod1 + m |
Focus window in main pane. |
swap-ccw |
mod2 + j |
Swap active window with previous neighbor. |
swap-cw |
mod2 + k |
Swap active window with next neighbor. |
swap-main |
mod1 + enter |
Promote active window to main pane. |
focus-screen-ccw |
mod1 + p |
Focus previous screen. |
focus-screen-cw |
mod1 + n |
Focus next screen. |
swap-screen-ccw |
mod2 + h |
Move active window to previous screen. |
swap-screen-cw |
mod2 + l |
Move active window to next screen. |
throw-space-left |
mod2 + b |
Send active window to previous workspace. |
throw-space-right |
mod2 + f |
Send active window to next workspace. |
toggle-float |
mod1 + t |
Toggle floating for the active window. |
toggle-tiling |
mod2 + t |
Toggle tiling management on or off. |
enable-tiling |
false |
Enable tiling management. |
disable-tiling |
false |
Disable tiling management. |
display-current-layout |
mod1 + i |
Show current layout in the HUD. |
reevaluate-windows |
mod1 + z |
Re-query windows and recompute layout. |
toggle-focus-follows-mouse |
mod2 + x |
Toggle focus-follows-mouse. |
relaunch-controller |
mod2 + z |
Relaunch the background controller. |
Screen & workspace shortcuts
| Key | Default | Effect |
|---|---|---|
focus-screen-1 … focus-screen-5 |
mod1 + w, e, r, q, g |
Focus screen 1 through 5. |
throw-screen-1 … throw-screen-5 |
mod2 + w, e, y, q, g |
Move active window to screen 1 through 5. |
swap-screen-1 … swap-screen-5 |
false |
Alias for throw-screen-1 … throw-screen-5 (moves active window to screen 1 through 5). |
throw-space-1 … throw-space-9 |
mod2 + 1 … mod2 + 9 |
Send active window to workspace 1 through 9. |
throw-space-10 |
mod2 + 0 |
Send active window to workspace 10. |