Files
dotfiles/wez/.config/wezterm/wezterm.lua
Michael Yockey e7401fc495 wez: Dark mode
Adds a dark mode theme and setups automatic theme switching based on system light and dark mode.
2025-02-13 20:59:20 -05:00

24 lines
485 B
Lua

local wezterm = require('wezterm')
local config = wezterm.config_builder()
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