commit b5e6a9d55dd345ae7c6751b12a190e20b01933ca Author: Thomas G. Lopes Date: Thu Feb 19 16:38:22 2026 +0000 add wezterm diff --git a/wezterm/config.lua b/wezterm/config.lua new file mode 100644 index 0000000..02f4f61 --- /dev/null +++ b/wezterm/config.lua @@ -0,0 +1,6 @@ +return { + target = { + linux = "~/.config/wezterm", + default = "~/.config/wezterm", + }, +} diff --git a/wezterm/files/wezterm.lua b/wezterm/files/wezterm.lua new file mode 100644 index 0000000..ae84476 --- /dev/null +++ b/wezterm/files/wezterm.lua @@ -0,0 +1,62 @@ +local wezterm = require("wezterm") +local act = wezterm.action +local mux = wezterm.mux + +-- This will hold the configuration. +local config = wezterm.config_builder() + +-- for theming +wezterm.add_to_config_reload_watch_list(wezterm.config_dir .. "/colors/dank-theme.toml") +config.color_scheme = "dank-theme" +config.window_background_opacity = 0.9 +config.automatically_reload_config = true + +-- for niri compat +config.window_decorations = "RESIZE" +config.use_resize_increments = false +config.enable_wayland = true + +-- keybinds +config.keys = { + { key = "PageDown", mods = "CTRL|SHIFT", action = act.MoveTabRelative(1) }, + { key = "PageUp", mods = "CTRL|SHIFT", action = act.MoveTabRelative(-1) }, + -- unbind + { key = "LeftArrow", mods = "CTRL|SHIFT", action = act.DisableDefaultAssignment }, + { key = "RightArrow", mods = "CTRL|SHIFT", action = act.DisableDefaultAssignment }, + { key = "UpArrow", mods = "CTRL|SHIFT", action = act.DisableDefaultAssignment }, + { key = "DownArrow", mods = "CTRL|SHIFT", action = act.DisableDefaultAssignment }, +} + +-- mouse +local scroll_amnt = 7 +config.mouse_bindings = { + -- Slower scroll up/down + { + event = { Down = { streak = 1, button = { WheelUp = 1 } } }, + mods = "NONE", + action = wezterm.action.ScrollByLine(-scroll_amnt), + alt_screen = false, + }, + { + event = { Down = { streak = 1, button = { WheelDown = 1 } } }, + mods = "NONE", + action = wezterm.action.ScrollByLine(scroll_amnt), + alt_screen = false, + }, +} + +-- font +config.font = wezterm.font("IosevkaTermSlab Nerd Font", { weight = 400 }) +config.font_size = 12.0 + +-- events +-- wezterm.on("window-config-reloaded", function(window, pane) +-- window:toast_notification("wezterm", "configuration reloaded!", nil, 1000) +-- end) + +-- fix for clipboard bug +wezterm.on("window-focus-changed", function() + wezterm.run_child_process({ "sh", "-c", "wl-paste -n | wl-copy" }) +end) + +return config