wezterm: per-dpi settings

This commit is contained in:
Daniel Lundin 2024-07-02 21:19:21 +02:00
parent 09946832c1
commit bd8685e275

View file

@ -168,16 +168,20 @@ wezterm.on("window-config-reloaded", function(window, pane)
if dpi > 96 then
overrides.font_size = 14
overrides.freetype_load_target = "Normal"
-- overrides.cell_width = 0.95
overrides.cell_width = 1.0
else
overrides.font_size = 18
overrides.freetype_load_target = "HorizontalLcd"
end
window:set_config_overrides(overrides)
end)
config.font_size = 14
config.warn_about_missing_glyphs = false
config.bold_brightens_ansi_colors = false
config.unicode_version = 14
config.freetype_load_target = "HorizontalLcd"
config.custom_block_glyphs = false
config.allow_square_glyphs_to_overflow_width = "Always"