Skip to content

Instantly share code, notes, and snippets.

@samwarnick
Created October 16, 2024 16:08
Show Gist options
  • Save samwarnick/780a7d8de26c8892bec71536f62d562f to your computer and use it in GitHub Desktop.
Save samwarnick/780a7d8de26c8892bec71536f62d562f to your computer and use it in GitHub Desktop.
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local scheme = "terafox"
local scheme_def = wezterm.color.get_builtin_schemes()[scheme]
config.color_scheme = scheme
config.colors = {
tab_bar = {
background = "none",
active_tab = {
bg_color = scheme_def.brights[3],
fg_color = scheme_def.background,
},
inactive_tab = {
bg_color = "none",
fg_color = scheme_def.foreground,
},
inactive_tab_hover = {
bg_color = wezterm.color.parse(scheme_def.background):lighten(0.1),
fg_color = wezterm.color.parse(scheme_def.foreground):lighten(0.2),
},
new_tab = {
bg_color = "none",
fg_color = scheme_def.foreground,
},
},
}
config.command_palette_bg_color = wezterm.color.parse(scheme_def.background):lighten(0.1)
config.command_palette_fg_color = wezterm.color.parse(scheme_def.foreground):darken(0.1)
config.command_palette_font_size = 16
config.command_palette_rows = 8
config.font = wezterm.font({ family = "CodeliaLigatures Nerd Font" })
config.font_size = 16
config.window_frame = {
font = wezterm.font({ family = "Input" }),
font_size = 14,
}
config.window_background_opacity = 0.90
config.macos_window_background_blur = 30
config.window_decorations = "RESIZE|MACOS_FORCE_ENABLE_SHADOW"
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true
config.window_close_confirmation = "NeverPrompt"
config.keys = {
-- Sends ESC + b and ESC + f sequence, which is used
-- for telling your shell to jump back/forward.
{
key = "LeftArrow",
mods = "OPT",
action = wezterm.action.SendString("\x1bb"),
},
{
key = "RightArrow",
mods = "OPT",
action = wezterm.action.SendString("\x1bf"),
},
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment