mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-03-13 13:24:28 +00:00
examples: wezterm: Use Xwayland.
This commit is contained in:
parent
efefd3ba1a
commit
7da3af1adf
@ -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 wezterm = require 'wezterm'
|
||||||
local mux = wezterm.mux
|
local config = wezterm.config_builder()
|
||||||
local config = {}
|
|
||||||
|
|
||||||
wezterm.on('gui-startup', function(cmd)
|
-- Use Xwayland in the LiveCD so that we can change keyboard layout when
|
||||||
local tab, pane, window = mux.spawn_window(cmd or {})
|
-- WezTerm is running.
|
||||||
window:gui_window():maximize()
|
config.enable_wayland = false
|
||||||
end)
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user