From 7da3af1adfaa67c6474ec0d0fdaed192457abc70 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 14 Feb 2026 14:51:56 +0800 Subject: [PATCH] examples: wezterm: Use Xwayland. --- .../examples/dot-config/wezterm/wezterm.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/rosenthal/examples/dot-config/wezterm/wezterm.lua b/modules/rosenthal/examples/dot-config/wezterm/wezterm.lua index e66cb05..c874b35 100644 --- a/modules/rosenthal/examples/dot-config/wezterm/wezterm.lua +++ b/modules/rosenthal/examples/dot-config/wezterm/wezterm.lua @@ -1,12 +1,8 @@ --- 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 = {} +local config = wezterm.config_builder() -wezterm.on('gui-startup', function(cmd) - local tab, pane, window = mux.spawn_window(cmd or {}) - window:gui_window():maximize() -end) +-- Use Xwayland in the LiveCD so that we can change keyboard layout when +-- WezTerm is running. +config.enable_wayland = false return config