wezterm: set exact font size based on dpi

This commit is contained in:
Daniel Lundin 2024-06-17 20:15:26 +02:00
parent 0b14d0b9b0
commit df96ee6bc5
No known key found for this signature in database

View file

@ -154,8 +154,18 @@ config.font_rules = {
},
}
config.font_size = 15
-- config.font_size = 18
wezterm.on('window-config-reloaded', function(window, pane)
local overrides = window:get_config_overrides() or {}
local dpi = wezterm.gui.screens().active.effective_dpi
if dpi > 96 then
overrides.font_size = 15
else
overrides.font_size = 18
end
window:set_config_overrides(overrides)
end)
config.warn_about_missing_glyphs = false
config.bold_brightens_ansi_colors = false
config.unicode_version = 14