wez: Dark mode

Adds a dark mode theme and setups automatic theme switching based on system light and dark mode.
This commit is contained in:
2025-02-13 20:59:20 -05:00
parent 9a90772ef7
commit e7401fc495
2 changed files with 52 additions and 1 deletions

View File

@@ -1,7 +1,23 @@
local wezterm = require('wezterm')
local config = wezterm.config_builder()
config.color_scheme = "Tempus Past"
config.font = wezterm.font('TX-02')
config.font_size = 17
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 'Tempus Classic'
else
return 'Tempus Past'
end
end
config.color_scheme = scheme_for_appearance(get_appearance())
return config