aboutsummaryrefslogtreecommitdiffstats
path: root/wezterm/keybinds.lua
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-06-14 17:22:02 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-06-15 13:28:44 -0400
commit1dd059cabd6cdd7d707a06e734454e64b49a8e0d (patch)
tree3367b58c72cb8fc99455515fade846db5870cf95 /wezterm/keybinds.lua
parent04e99fb04e5888bf7af6a3384d420bd35e1bf8a5 (diff)
Add wezterm keybinds and font config
Diffstat (limited to 'wezterm/keybinds.lua')
-rw-r--r--wezterm/keybinds.lua43
1 files changed, 43 insertions, 0 deletions
diff --git a/wezterm/keybinds.lua b/wezterm/keybinds.lua
new file mode 100644
index 0000000..33bd8e4
--- /dev/null
+++ b/wezterm/keybinds.lua
@@ -0,0 +1,43 @@
+local M = {}
+
+local wezterm = require 'wezterm'
+
+
+local disabled_keys = {
+ {
+ key = 'M',
+ mods = 'CTRL',
+ action = wezterm.action.DisableDefaultAssignment,
+ },
+ {
+ key = 'Enter',
+ mods = 'ALT',
+ action = wezterm.action.DisableDefaultAssignment,
+ },
+ {
+ key = 'P',
+ mods = 'CTRL',
+ action = wezterm.action.DisableDefaultAssignment,
+ },
+}
+
+function M.apply_to_config(config)
+ config.leader = {
+ key = ';',
+ mods = 'CTRL',
+ }
+ config.keys = {}
+
+ for _, disabled_map in ipairs(disabled_keys) do
+ table.insert(config.keys, disabled_map)
+ end
+
+ table.insert(config.keys, {
+ key = ';',
+ mods = 'LEADER',
+ action = wezterm.action.ActivateCommandPalette,
+ })
+
+end
+
+return M