From b0eae7695f1cba95d0b49b51957c7a1a76bcf5a2 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 9 Mar 2023 18:11:46 +0100 Subject: [PATCH] wezterm: use shelman-theme --- .config/wezterm/wezterm.lua | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index a065c67..f79a33e 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -26,21 +26,6 @@ wezterm.on("mux-startup", function() }) end) -local function scheme_for_appearance(appearance) - if appearance:find("Dark") then - return "Shelman Dark" - else - return "Shelman Light" - end -end - -local function _get_scheme() - -- if wezterm.gui then - -- return return scheme_for_appearance(wezterm.gui.get_appearance()) - -- end - return "Shelman Dark" -end - local is_server = wezterm.hostname() == "dln-dev" local function activate_nvim(window, pane) @@ -101,9 +86,13 @@ wezterm.on("tab-8", activate_tab("t8", 7)) wezterm.on("tab-9", activate_tab("t9", 8)) wezterm.on("tab-10", activate_tab("t10", 9)) +wezterm.add_to_config_reload_watch_list("/home/dln/.config/shelman-theme/current/wezterm") + return { - color_scheme = _get_scheme(), - color_scheme_dirs = { "/home/dln/.config/wezterm" }, + color_scheme = "Shelman Theme", + color_scheme_dirs = { + "/home/dln/.config/shelman-theme/current/wezterm", + }, font = font_with_fallback("Iosevka Shelman SS09", { weight = "Regular" }), font_rules = { {