.dotfiles/.config/wezterm/wezterm.lua
2026-05-01 17:59:20 +03:00

62 lines
1.6 KiB
Lua

-- Pull in the wezterm API
local wezterm = require("wezterm")
local act = wezterm.action
-- This will hold the configuration.
local config = wezterm.config_builder()
-- For example, changing the color scheme:
config.color_scheme = "OneDark (base16)"
config.alternate_buffer_wheel_scroll_speed = 10
config.initial_cols = 240
config.initial_rows = 500
-- Change mouse scroll amount
config.mouse_bindings = {
{
event = { Down = { streak = 1, button = { WheelUp = 1 } } },
mods = "NONE",
action = act.ScrollByLine(-10),
},
{
event = { Down = { streak = 1, button = { WheelDown = 1 } } },
mods = "NONE",
action = act.ScrollByLine(10),
},
}
config.font = wezterm.font({ family = "FiraMono Nerd Font" })
config.font_size = 12
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.default_cursor_style = "BlinkingBlock"
config.animation_fps = 60
config.front_end = "WebGpu"
-- config.cursor_blink_ease_in = "Constant"
-- config.cursor_blink_ease_out = "Constant"
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.keys = {
{ key = "v", mods = "CTRL", action = wezterm.action.PasteFrom("Clipboard") },
{ key = "c", mods = "CTRL", action = wezterm.action.CopyTo("ClipboardAndPrimarySelection") },
{ key = "C", mods = "CTRL", action = wezterm.action.SendString("\x03") },
{
key = "Enter",
mods = "ALT",
action = wezterm.action.DisableDefaultAssignment,
},
{
key = "Tab",
mods = "CTRL",
action = wezterm.action.DisableDefaultAssignment,
},
}
-- and finally, return the configuration to wezterm
return config