From 71399cd9e4c88389a80f8b930e4c086b8b318f23 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Thu, 9 Nov 2023 22:34:51 +0100 Subject: [PATCH] pinwheel: Bind only wanted keybindings in `wezterm` --- hosts/pinwheel/modules/wezterm/default.nix | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hosts/pinwheel/modules/wezterm/default.nix b/hosts/pinwheel/modules/wezterm/default.nix index 35b846d..64234ac 100644 --- a/hosts/pinwheel/modules/wezterm/default.nix +++ b/hosts/pinwheel/modules/wezterm/default.nix @@ -37,6 +37,35 @@ in bottom = 0, } + config.disable_default_key_bindings = true + config.keys = { + { + key = 'C', + mods = 'CTRL|SHIFT', + action = wezterm.action.CopyTo "Clipboard", + }, + { + key = 'V', + mods = 'CTRL|SHIFT', + action = wezterm.action.PasteFrom "Clipboard", + }, + { + key = '+', + mods = 'CTRL', + action = wezterm.action.IncreaseFontSize, + }, + { + key = '-', + mods = 'CTRL', + action = wezterm.action.DecreaseFontSize, + }, + { + key = '0', + mods = 'CTRL', + action = wezterm.action.ResetFontSize, + }, + } + return config ''; };