examples: Start WezTerm maximized so that the installer won't be resized.

This commit is contained in:
Hilton Chain 2026-02-10 23:13:28 +08:00
parent 7e2c3f3573
commit 42a46b7b43
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
3 changed files with 17 additions and 4 deletions

View File

@ -639,14 +639,13 @@ debug {
honor-xdg-activation-with-invalid-serial
}
// Needed for Emacs in the installer.
// Emacs has a window height > 100% whening using CSD.
prefer-no-csd
// Needed for WezTerm in the installer.
// Keep WezTerm maximized so that the installer won't be resized.
window-rule {
match app-id="org.wezfurlong.wezterm"
default-column-width { proportion 0.5; }
default-window-height { proportion 1.0; }
open-maximized true
}
// Background color to match the wallpaper.

View File

@ -0,0 +1,12 @@
-- Keep WezTerm maximized so that the installer won't be resized.
-- https://wezterm.org/config/lua/gui-events/gui-startup.html
local wezterm = require 'wezterm'
local mux = wezterm.mux
local config = {}
wezterm.on('gui-startup', function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
return config

View File

@ -679,6 +679,8 @@ set-keymap us dvorak -o ctrl:nocaps\n")
,(local-file "../examples/noctalia-shell/shell-state.json"))
(".config/noctalia/settings.json"
,(local-file "../examples/noctalia-shell/settings.json"))
(".config/wezterm/wezterm.lua"
,(local-file "../examples/wezterm.lua"))
(".config/xfce4/helpers.rc"
,(plain-file "helpers.rc" "TerminalEmulator=open-wezterm-here\n"))