modding wezterm

This commit is contained in:
William 2023-08-20 21:41:32 -03:00
parent 394e6fa46d
commit 3289b204fd

View file

@ -95,6 +95,7 @@
wezterm = { wezterm = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
local act = wezterm.action
function scheme_for_appearance(appearance) function scheme_for_appearance(appearance)
if appearance:find "Dark" then if appearance:find "Dark" then
return "Catppuccin Mocha" return "Catppuccin Mocha"
@ -102,19 +103,54 @@
return "Catppuccin Macchiato" return "Catppuccin Macchiato"
end end
end end
return { local config = {}
font_size = 11, if wezterm.config_builder then config = wezterm.config_builder() end
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()), config.color_scheme = "Catppuccin Mocha"
hide_tab_bar_if_only_one_tab = true, config.font = wezterm.font_with_fallback ({
font = wezterm.font_with_fallback ({ {family = "Hack Nerd Font", scale = 1},
"Hack Nerd Font", {family = "Noto Color Emoji", scale = 1},
"Noto Color Emoji", })
}), config.initial_cols = 108
initial_cols = 108, config.initial_rows = 32
initial_rows = 32, config.enable_scroll_bar = true
enable_tab_bar = false, config.inactive_pane_hsb = {
enable_scroll_bar = true, saturation = 0.7,
brightness = 0.5
} }
config.show_new_tab_button_in_tab_bar = false
wezterm.plugin.require("https://github.com/nekowinston/wezterm-bar").apply_to_config(config, {
position = "bottom",
max_width = 32,
dividers = "slant_right", -- "slant_right", "slant_left", "arrows", "rounded", false
indicator = {
leader = {
enabled = false,
off = " ",
on = " ",
},
mode = {
enabled = false,
names = {
resize_mode = "RESIZE",
copy_mode = "VISUAL",
search_mode = "SEARCH",
},
},
},
tabs = {
numerals = "roman", -- "roman", "arabic"
pane_count = false, -- "superscript", "subscript", false
brackets = {
active = { "", ":" },
inactive = { "", ":" },
},
},
clock = { -- note that this overrides the whole set_right_status
enabled = false,
format = "%H:%M", -- use https://wezfurlong.org/wezterm/config/lua/wezterm.time/Time/format.html
},
})
return config
''; '';
}; };
}; };