From 9e7bffd58d55dfdfece19c65563d35522e26ef35 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Thu, 23 Mar 2023 09:21:25 -0400 Subject: [PATCH] Wezterm config_builder --- wezterm/wezterm.lua | 100 ++++++++++++++++++++++++-------------------- 1 file changed, 55 insertions(+), 45 deletions(-) diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index b2324c8..34588f2 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -1,50 +1,60 @@ local wezterm = require 'wezterm'; -return { - font = wezterm.font_with_fallback({ - {family="Iosevka Custom", weight="Medium"}, - }), - font_rules = { - { - italic = true, - font = wezterm.font_with_fallback({ - {family="Dank Mono", italic=true}, - {family="Iosevka Custom", weight="Light"}, - } - ), - }, - }, - font_size = 15.0, - -- wayland? - enable_wayland = true, - -- TERM name - term = "xterm-256color", +-- Allow working with both the current release and the nightly +local config = {} +if wezterm.config_builder then + config = wezterm.config_builder() +end - -- Color Scheme(s) - color_scheme = "Hopscotch.256", - color_schemes = { - ["Corvine"] = { - background = "#262626", - foreground = "#c6c6c6", - -- ansi = {"black", "maroon", "green", "olive", "navy", "purple", "teal", "silver"}, - -- brights = {"grey", "red", "lime", "yellow", "blue", "fuchsia", "aqua", "white"}, - ansi = {"#3a3a3a", "#d7d7d7", "#87af5f", "#d7d7af", "#87afd7", "#afafd7", "#87d7d7", "#c6c6c6"}, - brights = {"#626262", "#ffafaf", "#afd787", "#d7d787", "#87d7ff", "#d7afd7", "#5fd7d7", "#eeeeee"} - }, - ["OceanicNext"] = { - background = "#1b2b34", - foreground = "#c0c5ce", - -- Overrides the cell background color when the current cell is occupied by the - -- cursor and the cursor style is set to Block - cursor_bg = "#c0c5ce", - -- Overrides the text color when the current cell is occupied by the cursor - cursor_fg = "#1b2b34", - ansi = {"#1b2b34", "#ec5f67", "#99c794", "#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#c0c5ce"}, - brights = {"#65737e", "#ec5f67", "#99c794" ,"#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#d8dee9"} - }, - }, - -- Tab Bar - enable_tab_bar = true, - hide_tab_bar_if_only_one_tab = true, +config.font = wezterm.font_with_fallback({ + {family="Iosevka Custom", weight="Medium"}, +}) + +config.font_rules = { + { + italic = true, + font = wezterm.font_with_fallback({ + {family="Dank Mono", italic=true}, + {family="Iosevka Custom", weight="Light"}, + } + ), + }, } + +config.font_size = 15.0 +-- wayland? +config.enable_wayland = true +-- TERM name +config.term = "xterm-256color" + +-- Color Scheme(s) +-- config.color_scheme = "Hopscotch.256" +config.color_scheme = "Everblush" +config.color_schemes = { + ["Corvine"] = { + background = "#262626", + foreground = "#c6c6c6", + -- ansi = {"black", "maroon", "green", "olive", "navy", "purple", "teal", "silver"}, + -- brights = {"grey", "red", "lime", "yellow", "blue", "fuchsia", "aqua", "white"}, + ansi = {"#3a3a3a", "#d7d7d7", "#87af5f", "#d7d7af", "#87afd7", "#afafd7", "#87d7d7", "#c6c6c6"}, + brights = {"#626262", "#ffafaf", "#afd787", "#d7d787", "#87d7ff", "#d7afd7", "#5fd7d7", "#eeeeee"} + }, + ["OceanicNext"] = { + background = "#1b2b34", + foreground = "#c0c5ce", + -- Overrides the cell background color when the current cell is occupied by the + -- cursor and the cursor style is set to Block + cursor_bg = "#c0c5ce", + -- Overrides the text color when the current cell is occupied by the cursor + cursor_fg = "#1b2b34", + ansi = {"#1b2b34", "#ec5f67", "#99c794", "#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#c0c5ce"}, + brights = {"#65737e", "#ec5f67", "#99c794" ,"#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#d8dee9"} + }, +} + +-- Tab Bar +config.enable_tab_bar = true +config.hide_tab_bar_if_only_one_tab = true + +return config