Skip to content

Instantly share code, notes, and snippets.

@huytd
Last active January 4, 2024 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huytd/21f5b15132efccb1c733abea44d16a7f to your computer and use it in GitHub Desktop.
Save huytd/21f5b15132efccb1c733abea44d16a7f to your computer and use it in GitHub Desktop.
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.color_scheme = 'One Half Black (Gogh)'
config.font = wezterm.font 'Office Code Pro'
config.font_size = 14
config.colors = {
background = '#181818',
tab_bar = {
background = '#181818',
active_tab = {
bg_color = '#181818',
fg_color = '#ffffff'
},
inactive_tab = {
bg_color = '#282828',
fg_color = '#626262'
}
}
}
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true
config.show_new_tab_button_in_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.window_decorations = "RESIZE"
config.window_frame = {
font = wezterm.font 'Office Code Pro',
font_size = 13,
active_titlebar_bg = '#181818'
}
config.keys = {
{
key = '/',
mods = 'CMD',
action = wezterm.action.SplitHorizontal
},
{
key = 'd',
mods = 'CMD',
action = wezterm.action.SplitVertical
},
{
key = 'h',
mods = 'CMD|CTRL',
action = wezterm.action.ActivatePaneDirection 'Left',
},
{
key = 'l',
mods = 'CMD|CTRL',
action = wezterm.action.ActivatePaneDirection 'Right',
},
{
key = 'k',
mods = 'CMD|CTRL',
action = wezterm.action.ActivatePaneDirection 'Up',
},
{
key = 'j',
mods = 'CMD|CTRL',
action = wezterm.action.ActivatePaneDirection 'Down',
},
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment