Files
dotfiles/dot_config/wezterm/wezterm.lua
2025-07-23 00:26:25 -07:00

74 lines
1.7 KiB
Lua

-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
config.enable_tab_bar = false
config.animation_fps = 10
-- Window
config.initial_cols = 274
config.initial_rows = 52
config.window_decorations = "RESIZE"
config.window_background_opacity = 0.96
config.macos_window_background_blur = 80
-- Typography
config.font = wezterm.font({
family = 'SF Mono',
weight = 'Regular'
})
config.line_height = 1.3
config.font_size = 13.2
config.cell_width = 1
-- Cursor
config.cursor_thickness = 2
config.cursor_blink_rate = 600
config.cursor_blink_ease_in = 'Constant'
config.cursor_blink_ease_out = 'Constant'
config.bold_brightens_ansi_colors = false
config.colors = {
foreground = '#1A1C22',
background = '#F7F6F3',
cursor_bg = '#3B82F6',
cursor_fg = '#F7F6F3',
ansi = {
'#1A1C22',
'#C63533',
'#3F7A59',
'#D4680F',
'#2D739F',
'#B9437F',
'#3599A2',
'#BDBFC4',
},
brights = {
'#3E4149',
'#E07270',
'#62BF8B',
'#DC9154',
'#61A5D0',
'#DC83B0',
'#6DBAC1',
'#DCDDE1',
},
}
-- START: Add Shift+Enter key binding here
config.keys = config.keys or {} -- Ensure the keys table exists if not already defined
table.insert(config.keys, {
key = 'Enter', -- The key pressed
mods = 'SHIFT', -- The modifier key (Shift)
action = wezterm.action.SendString('\u{1b}[25~') -- Send the escape sequence for F15
-- '\u{1b}' is ESC. '[25~' is a common sequence for F15.
})
-- END: Shift+Enter key binding
-- and finally, return the configuration to wezterm
return config