arch-setup/templates/wezterm/includes/colors.lua.j2

24 lines
531 B
Django/Jinja

-- {{ ansible_managed }}
local wezterm = require 'wezterm'
-- wezterm.gui is not available to the mux server, so take care to
-- do something reasonable when this config is evaluated by the mux
local function get_appearance()
if wezterm.gui then
return wezterm.gui.get_appearance()
end
return 'Dark'
end
local function scheme_for_appearance(appearance)
if appearance:find 'Dark' then
return 'Github Dark'
else
return 'Github'
end
end
return {
color_scheme = scheme_for_appearance(get_appearance()),
}