dotfiles/.wezterm.lua

54 lines
2.0 KiB
Lua
Raw Permalink Normal View History

local wezterm = require("wezterm")
local config = wezterm.config_builder()
local act = wezterm.action
local is_darwin = function()
return wezterm.target_triple:find("darwin") ~= nil
end
2024-07-03 04:23:48 +00:00
config.force_reverse_video_cursor = true
config.colors = {
foreground = "#dcd7ba",
background = "#1f1f28",
cursor_bg = "#c8c093",
cursor_fg = "#c8c093",
cursor_border = "#c8c093",
selection_fg = "#c8c093",
selection_bg = "#2d4f67",
scrollbar_thumb = "#16161d",
split = "#16161d",
ansi = { "#090618", "#c34043", "#76946a", "#c0a36e", "#7e9cd8", "#957fb8", "#6a9589", "#c8c093" },
brights = { "#727169", "#e82424", "#98bb6c", "#e6c384", "#7fb4ca", "#938aa9", "#7aa89f", "#dcd7ba" },
indexed = { [16] = "#ffa066", [17] = "#ff5d62" },
}
config.window_background_opacity = 0.7
config.window_decorations = "RESIZE"
config.font_size = is_darwin() and 13 or 11
config.tab_bar_at_bottom = true
config.hide_tab_bar_if_only_one_tab = true
config.keys = {
{ key = "Enter", mods = "SHIFT|CTRL", action = act.SplitVertical({ domain = "CurrentPaneDomain" }) },
{ key = '"', mods = "SHIFT|CTRL", action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "H", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Left") },
{ key = "L", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Right") },
{ key = "K", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Up") },
{ key = "J", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Down") },
{ key = "H", mods = "SHIFT|CTRL|SUPER", action = act.AdjustPaneSize({ "Left", 1 }) },
{ key = "L", mods = "SHIFT|CTRL|SUPER", action = act.AdjustPaneSize({ "Right", 1 }) },
{ key = "K", mods = "SHIFT|CTRL|SUPER", action = act.AdjustPaneSize({ "Up", 1 }) },
{ key = "J", mods = "SHIFT|CTRL|SUPER", action = act.AdjustPaneSize({ "Down", 1 }) },
{ key = "D", mods = "SHIFT|CTRL|SUPER", action = act.ShowDebugOverlay },
{ key = "X", mods = "SHIFT|CTRL|ALT", action = act.ActivateCopyMode },
{ key = "Z", mods = "SHIFT|CTRL|ALT", action = act.TogglePaneZoomState },
}
return config