1
0
Fork 0

wezterm: rename some stuff

This commit is contained in:
Von Random 2023-01-28 03:34:59 +02:00
parent 4de2c15339
commit 827e26da99

View file

@ -71,10 +71,10 @@ local function get_os()
return io.popen('uname -s', 'r'):read() return io.popen('uname -s', 'r'):read()
end end
local function set_fontsize(sizes) local function set_by_os(values)
local my_os = get_os() local my_os = get_os()
if sizes[my_os] then return sizes[my_os] end if values[my_os] then return values[my_os] end
return sizes.others return values.others
end end
local current_overrides = {} local current_overrides = {}
@ -101,7 +101,7 @@ wt.on('reset-overrides', reset_overrides)
return { return {
audible_bell = 'Disabled', audible_bell = 'Disabled',
font = wt.font(font), font = wt.font(font),
font_size = set_fontsize(fontsizes), font_size = set_by_os(fontsizes),
harfbuzz_features = font_features, harfbuzz_features = font_features,
color_scheme = theme, color_scheme = theme,
cursor_blink_rate = 0, cursor_blink_rate = 0,