From 5b29f22fb4f552d8f11ade858258b26aa53eee33 Mon Sep 17 00:00:00 2001 From: Jonas H Date: Fri, 10 Apr 2026 09:01:34 +0200 Subject: [PATCH] wezterm update --- wezterm/.config/wezterm/wezterm.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua index 9a30f91..8bbd2b7 100644 --- a/wezterm/.config/wezterm/wezterm.lua +++ b/wezterm/.config/wezterm/wezterm.lua @@ -9,15 +9,32 @@ config.font_size = 11.0 config.colors = theme.colors() -- Window -config.enable_tab_bar = false +config.enable_tab_bar = true config.window_close_confirmation = 'NeverPrompt' +-- Only show tab bar when there are multiple tabs +wezterm.on('update-right-status', function(window, pane) + local overrides = window:get_config_overrides() or {} + local tabs = window:mux_window():tabs() + local show = #tabs > 1 + if overrides.enable_tab_bar ~= show then + overrides.enable_tab_bar = show + window:set_config_overrides(overrides) + end +end) + -- Wayland specific fixes config.enable_wayland = true -- Enable Kitty keyboard protocol for better key disambiguation (Ctrl+I vs Tab) config.enable_kitty_keyboard = true +-- Keybindings +config.keys = { + { key = 'LeftArrow', mods = 'CTRL|SHIFT', action = wezterm.action.ActivateTabRelative(-1) }, + { key = 'RightArrow', mods = 'CTRL|SHIFT', action = wezterm.action.ActivateTabRelative(1) }, +} + -- Machine-local overrides (not tracked in dotfiles) -- Create ~/.config/wezterm/local.lua returning a function that mutates config local ok, local_config = pcall(require, 'local')