.dotfiles/.config/wezterm/wezterm.lua
2026-03-05 13:50:49 +02:00

56 lines
1.4 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 = "nord"
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 = "Iosevka Nerd Font", weight = "Regular", style = "Italic" })
config.font_size = 12
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
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