mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-02-15 08:32:27 +00:00
examples: Start WezTerm maximized so that the installer won't be resized.
This commit is contained in:
parent
7e2c3f3573
commit
42a46b7b43
@ -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
modules/rosenthal/examples/wezterm.lua
Normal file
12
modules/rosenthal/examples/wezterm.lua
Normal 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
|
||||
@ -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"))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user