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

This commit is contained in:
Hilton Chain committed 2026-02-10 23:13:28 +08:00
1 parent 7e2c3f3573
commit 42a46b7b43
3 files changed
+17 -4

No files matched your search

+3 -4
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.
+12
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