From 1dd059cabd6cdd7d707a06e734454e64b49a8e0d Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sat, 14 Jun 2025 17:22:02 -0400 Subject: Add wezterm keybinds and font config --- wezterm/keybinds.lua | 43 +++++++++++++++++++++++++++++++++++++++++++ wezterm/wezterm.lua | 13 ++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 wezterm/keybinds.lua (limited to 'wezterm') 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 diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index 28f4fcf..8b646ae 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -4,12 +4,22 @@ local config = wezterm.config_builder() require('keybinds').apply_to_config(config) +-- fonts +config.font_size = 16 +config.font = wezterm.font_with_fallback({ + { + family = "FiraMono Nerd Font", + weight = "Medium", + harfbuzz_features = { "ss03" }, + }, + "Noto Color Emoji", +}) + -- tab config.use_fancy_tab_bar = false config.hide_tab_bar_if_only_one_tab = true -- window appearnce -config.font_size = 12 config.window_padding = { left = 0, right = 0, @@ -17,6 +27,7 @@ config.window_padding = { bottom = 0, } config.window_background_opacity = 0.75 +config.window_decorations = "RESIZE" -- colors require('colorscheme').apply_to_config(config) -- cgit v1.2.3