mirror of https://github.com/mitchell/dotfiles.git
59 lines
2.1 KiB
Lua
59 lines
2.1 KiB
Lua
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
|
|
|
|
if is_darwin() then
|
|
config.default_prog = { "/opt/homebrew/bin/fish", "-l" }
|
|
end
|
|
|
|
config.window_decorations = "RESIZE"
|
|
|
|
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 = is_darwin() and 0.85 or 0.7
|
|
|
|
config.font_size = is_darwin() and 14 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
|