Skip to main content

Window Configuration

WezTerm provides extensive options for customizing the appearance and behavior of terminal windows.

Window Size

Initial Dimensions

number
default:"80"
The width of a new window, expressed in character cells.
number
default:"24"
The height of a new window, expressed in character cells.

Font Size Change Behavior

boolean
default:"true"
When true, the window size adjusts to maintain the same number of rows and columns when font size changes.

Window Padding

table
Controls the amount of padding between the window border and terminal cells. Values can be specified in pixels, points, cells, or percentage.

Padding Units

You can specify padding using different units:
If enable_scroll_bar is true, the right padding value controls the scrollbar width.

Window Decorations

string
default:"'TITLE | RESIZE'"
Controls which window decorations are enabled. Can be combined with |.Valid values:
  • NONE: No decorations
  • TITLE: Show title bar
  • RESIZE: Allow window resizing
  • MACOS_FORCE_ENABLE_SHADOW: Enable shadow on macOS
  • MACOS_FORCE_DISABLE_SHADOW: Disable shadow on macOS
  • INTEGRATED_BUTTONS: Use integrated title bar buttons

Integrated Title Buttons

Configure the appearance of integrated title bar buttons:
array
default:"['Hide', 'Maximize', 'Close']"
Array of button names to show in the integrated title bar.
string
default:"'Windows'"
Style of integrated buttons. Valid values: Windows, Gnome, MacOsNative
string
default:"'Right'"
Alignment of integrated buttons. Valid values: Left, Right
string
default:"'Auto'"
Color for integrated title buttons. Can be Auto or a hex color value.

Window Frame

Configure the window frame appearance when using client-side decorations:
table
Configuration object for window frame appearance.

Window Background

Solid Color Background

The background color is set via the color scheme or colors configuration:

Background Opacity

number
default:"1.0"
The opacity of the window background, from 0.0 (fully transparent) to 1.0 (fully opaque).
Background opacity requires compositor support on Linux and may not work on all systems.

Background Images

array
default:"[]"
An array of background layer specifications. Layers can include images, gradients, and solid colors.

Background Gradients

table
default:"nil"
Shorthand for configuring a gradient background.

Window Content Alignment

string
default:"'Left'"
Horizontal alignment of terminal content within the window. Valid values: Left, Center, Right

Window Blur Effects

macOS Window Blur

number
default:"0"
macOS-specific blur radius for window background. Values typically range from 0 to 100.

Windows System Backdrop

string
default:"'Auto'"
Windows 11-specific backdrop material. Valid values: Auto, Disable, Acrylic, Mica, Tabbed
string
default:"nil"
Accent color for Windows Acrylic backdrop effect. Specify as hex color.

KDE Window Blur

boolean
default:"false"
Enable KDE Plasma window background blur effect.

Window Close Confirmation

string
default:"'AlwaysPrompt'"
Controls when to show close confirmation. Valid values:
  • AlwaysPrompt: Always ask for confirmation
  • NeverPrompt: Never ask for confirmation

Skip Close Confirmation for Processes

array
default:"[]"
Array of process names that won’t trigger close confirmation.

Window Behavior

Quit When All Windows Closed

boolean
default:"true"
When true, WezTerm quits when the last window is closed.

Native macOS Fullscreen

boolean
default:"false"
When true, uses native macOS fullscreen mode with animations and separate Space.

macOS Fullscreen Notch Behavior

boolean
default:"false"
On macOS with notch, extend fullscreen content behind the notch.

Window Resize Behavior

Use Resize Increments

boolean
default:"false"
When true, window resizing snaps to character cell boundaries.

Tiling Desktop Environments

array
default:"['X11 LG3D', 'X11 bspwm', ...]"
List of desktop environments detected as tiling window managers.

Complete Window Configuration Example

See Also