Skip to content

Instantly share code, notes, and snippets.

@davidspry
Last active January 12, 2025 05:15
Show Gist options
  • Save davidspry/de135a5aef00de20b3cc647372be16d1 to your computer and use it in GitHub Desktop.
Save davidspry/de135a5aef00de20b3cc647372be16d1 to your computer and use it in GitHub Desktop.
Wezterm configuration for macOS
-- Wezterm configuration for macOS
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Theme
config.color_scheme = 'Catppuccin Mocha'
-- Fonts
config.font_size = 12.0
config.font = wezterm.font('JetBrains Mono', { weight = 'Medium' })
-- Tab Bar
config.use_fancy_tab_bar = false
-- Window
config.window_decorations = "RESIZE"
config.native_macos_fullscreen_mode = true
config.initial_cols = 128
config.initial_rows = 32
-- Padding
config.window_padding = {
left = '1.5cell',
right = '1.5cell',
top = '0.5cell',
bottom = '0.5cell',
}
-- Key Bindings
config.keys = {
{
key = 'k',
mods = 'CMD',
action = wezterm.action.ClearScrollback 'ScrollbackAndViewport'
},
{
key = 'w',
mods = 'CMD',
action = wezterm.action.CloseCurrentPane({ confirm = true }),
},
{
key = 'f',
mods = 'CMD|SHIFT',
action = wezterm.action.ToggleFullScreen,
},
{
key = 'h',
mods = 'CMD|SHIFT',
action = wezterm.action.SplitHorizontal({ domain = 'CurrentPaneDomain' }),
},
{
key = 'v',
mods = 'CMD|SHIFT',
action = wezterm.action.SplitVertical({ domain = 'CurrentPaneDomain' }),
},
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment