Files
dotfiles/.config/wezterm/wezterm.lua
2026-04-29 11:06:56 +02:00

61 lines
1.4 KiB
Lua

local wezterm = require"wezterm"
local mux = wezterm.mux
local act = wezterm.action
wezterm.on('gui-startup', function()
local tab, pane, window = mux.spawn_window({})
window:gui_window():maximize()
end)
return {
-- Font settings
font = wezterm.font_with_fallback {
'Hack Nerd Font Mono',
'FiraCode Nerd Font Mono',
'Jetbrains Mono'
},
font_size = 18,
color_scheme = 'Monokai Dark (Gogh)',
-- color_scheme = 'Kanagawa (Gogh)',
-- color_scheme = "Gruvbox Dark",
-- Tab bar
show_tab_index_in_tab_bar = false,
hide_tab_bar_if_only_one_tab = true,
adjust_window_size_when_changing_font_size = false,
-- Window look
window_decorations = "RESIZE",
-- Wayland
enable_wayland = true,
inactive_pane_hsb = {
saturation = 0.8,
brightness = 0.7
},
window_frame = {
font = wezterm.font { family = 'Hack Nerd Font Mono', weight = 'Regular' },
},
scrollback_lines = 26000,
-- Keybindings
-- disable_default_key_bindings = true,
enable_scroll_bar = false,
window_padding = {
right = 0,
top = 0,
bottom = 0,
left = 0
},
leader = { key = 'b', mods = 'CMD', timeout_milliseconds = 2000 },
keys = {
{
key = "|",
mods = "LEADER|SHIFT",
action = wezterm.action.SplitHorizontal { domain = "CurrentPaneDomain" },
},
{
key = "-",
mods = "LEADER",
action = wezterm.action.SplitVertical { domain = "CurrentPaneDomain" },
},
}
}