From 827e26da99c5d48538fc4fb3459a97d6176455ca Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 28 Jan 2023 03:34:59 +0200 Subject: [PATCH] wezterm: rename some stuff --- wezterm.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wezterm.lua b/wezterm.lua index ceda726..4271842 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -71,10 +71,10 @@ local function get_os() return io.popen('uname -s', 'r'):read() end -local function set_fontsize(sizes) +local function set_by_os(values) local my_os = get_os() - if sizes[my_os] then return sizes[my_os] end - return sizes.others + if values[my_os] then return values[my_os] end + return values.others end local current_overrides = {} @@ -101,7 +101,7 @@ wt.on('reset-overrides', reset_overrides) return { audible_bell = 'Disabled', font = wt.font(font), - font_size = set_fontsize(fontsizes), + font_size = set_by_os(fontsizes), harfbuzz_features = font_features, color_scheme = theme, cursor_blink_rate = 0,