From b4544c47109c4394b05422473652ca15435a26ff Mon Sep 17 00:00:00 2001 From: Jonas H Date: Sat, 28 Feb 2026 00:16:33 +0100 Subject: [PATCH] wezterm: move wayland_scroll_factor to machine-local local.lua --- wezterm/.config/wezterm/.gitignore | 6 ++++++ wezterm/.config/wezterm/wezterm.lua | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 wezterm/.config/wezterm/.gitignore diff --git a/wezterm/.config/wezterm/.gitignore b/wezterm/.config/wezterm/.gitignore new file mode 100644 index 0000000..878811c --- /dev/null +++ b/wezterm/.config/wezterm/.gitignore @@ -0,0 +1,6 @@ +# Machine-local overrides — not tracked in dotfiles +# Create local.lua returning a function that mutates config, e.g.: +# return function(config) +# config.wayland_scroll_factor = 0.15 +# end +local.lua diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua index 7d4779a..9a30f91 100644 --- a/wezterm/.config/wezterm/wezterm.lua +++ b/wezterm/.config/wezterm/wezterm.lua @@ -12,12 +12,15 @@ config.colors = theme.colors() config.enable_tab_bar = false config.window_close_confirmation = 'NeverPrompt' -config.wayland_scroll_factor = 0.15 - -- Wayland specific fixes config.enable_wayland = true -- Enable Kitty keyboard protocol for better key disambiguation (Ctrl+I vs Tab) config.enable_kitty_keyboard = true +-- 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') +if ok then local_config(config) end + return config