mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-02-15 16:42:04 +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
|
honor-xdg-activation-with-invalid-serial
|
||||||
}
|
}
|
||||||
|
|
||||||
// Needed for Emacs in the installer.
|
// Emacs has a window height > 100% whening using CSD.
|
||||||
prefer-no-csd
|
prefer-no-csd
|
||||||
|
|
||||||
// Needed for WezTerm in the installer.
|
// Keep WezTerm maximized so that the installer won't be resized.
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="org.wezfurlong.wezterm"
|
match app-id="org.wezfurlong.wezterm"
|
||||||
default-column-width { proportion 0.5; }
|
open-maximized true
|
||||||
default-window-height { proportion 1.0; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Background color to match the wallpaper.
|
// 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"))
|
,(local-file "../examples/noctalia-shell/shell-state.json"))
|
||||||
(".config/noctalia/settings.json"
|
(".config/noctalia/settings.json"
|
||||||
,(local-file "../examples/noctalia-shell/settings.json"))
|
,(local-file "../examples/noctalia-shell/settings.json"))
|
||||||
|
(".config/wezterm/wezterm.lua"
|
||||||
|
,(local-file "../examples/wezterm.lua"))
|
||||||
(".config/xfce4/helpers.rc"
|
(".config/xfce4/helpers.rc"
|
||||||
,(plain-file "helpers.rc" "TerminalEmulator=open-wezterm-here\n"))
|
,(plain-file "helpers.rc" "TerminalEmulator=open-wezterm-here\n"))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user