Files
dotfiles/wezterm/wezterm.lua
2026-08-12 09:46:56 -05:00

43 lines
1.1 KiB
Lua

local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
-- Visual options
config.color_scheme = 's3r0 modified (terminal.sexy)'
config.font = wezterm.font 'Inconsolata Nerd Font Mono'
config.font_size = 12
config.enable_tab_bar = false
config.window_close_confirmation = 'NeverPrompt'
config.window_padding = {
left = '0',
right = '0',
top = '0',
bottom = '0'
}
config.window_background_opacity = 0.98
-- end visual options
config.automatically_reload_config = true
-- Linux specific fixes
if wezterm.target_triple == 'x86_64-unknown-linux-gnu' then
config.disable_default_key_bindings = true
end
local local_config_filename = os.getenv('HOME') .. '/.config/wezterm/local.lua'
local local_config = io.open(local_config_filename, 'r')
if local_config ~= nil then
local local_setup = require('local')
config = local_setup.setup(config)
end
config.keys = {
{key = 'V', mods = 'CTRL', action = act.PasteFrom 'Clipboard'},
{key = 'V', mods = 'CTRL', action = act.PasteFrom 'PrimarySelection'},
}
return config