Skip to content

Instantly share code, notes, and snippets.

@s-mage
Created December 28, 2024 13:07
Show Gist options
  • Save s-mage/d3fc18799748066c5b7686cc5032648b to your computer and use it in GitHub Desktop.
Save s-mage/d3fc18799748066c5b7686cc5032648b to your computer and use it in GitHub Desktop.
~/.wezterm.lua
-- Pull in the wezterm API
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.color_scheme = 'Alabaster'
config.font = wezterm.font 'Fira Code'
config.font_size = 13
config.line_height = 1.25
config.default_prog = { '/opt/homebrew/bin/bash' }
config.native_macos_fullscreen_mode = false
config.tab_bar_at_bottom = true
config.use_fancy_tab_bar = false
config.tab_max_width = 35
config.window_decorations = "RESIZE"
config.keys = {
{ key = 'DownArrow', mods = 'CMD', action = wezterm.action.SpawnTab('CurrentPaneDomain'), },
{ key = 'l', mods = 'CMD', action = wezterm.action.ActivateCommandPalette, },
}
config.mouse_bindings = {
-- Cmd-click will open the link under the mouse cursor
{
event = { Up = { streak = 1, button = 'Left' } },
mods = 'CMD',
action = wezterm.action.OpenLinkAtMouseCursor,
},
}
config.window_frame = {
-- The font used in the tab bar.
font = wezterm.font { family = 'Fira Code', weight = 400 },
font_size = 13.0,
active_titlebar_bg = '#ececec',
inactive_titlebar_bg = '#dadada',
}
config.colors = {
tab_bar = {
inactive_tab_edge = '#ececec',
background = '#ececec',
new_tab = {
bg_color = '#ececec',
fg_color = '#000000',
},
inactive_tab = {
bg_color = '#ececec',
fg_color = '#000000',
},
active_tab = {
bg_color = '#dadada',
fg_color = '#000000',
},
new_tab_hover = {
bg_color = '#ececec',
fg_color = '#000000',
},
inactive_tab_hover = {
bg_color = '#ececec',
fg_color = '#000000',
}
},
}
config.command_palette_fg_color = '#ffffff'
config.window_padding = {
left = '0cell',
right = '0cell',
top = '0cell',
bottom = '0cell',
}
-- and finally, return the configuration to wezterm
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment