dotfiles-pub/common/.wezterm.lua

214 lines
4.6 KiB
Lua
Raw Normal View History

2022-08-08 16:52:23 +00:00
local wezterm = require("wezterm");
2022-08-12 18:36:38 +00:00
local config = {
2022-08-08 16:52:23 +00:00
font_size = 9.0,
freetype_load_target = "Mono",
2022-08-12 18:36:38 +00:00
color_scheme = "Tokyo Night",
2022-08-08 16:52:23 +00:00
color_schemes = {
everforest = {
foreground = "#d3c6aa",
background = "#2b3339",
cursor_fg = "#3a454a",
cursor_bg = "#d3c6aa",
cursor_border = "#d3c6aa",
selection_fg = "#9da9a0",
selection_bg = "#7a8478",
ansi = {
"#323C41",
"#e67e80",
"#a7c080",
"#dbbc7f",
"#7fbbb3",
"#d699b6",
"#83c092",
"#d3c6aa",
},
brights = {
"#3A454A",
"#f85552",
"#8da101",
"#dfa000",
"#3a94c5",
"#df69ba",
"#35a77c",
"#9da9a0",
},
2022-08-12 18:36:38 +00:00
tab_bar = {
background = "#1e2327",
active_tab = {
bg_color = "#2b3339",
fg_color = "#d3c6aa",
},
inactive_tab = {
bg_color = "#1e2327",
fg_color = "#9da9a0",
},
inactive_tab_hover = {
bg_color = "#1e2327",
fg_color = "#d3c6aa",
italic = false,
},
new_tab = {
bg_color = "#1e2327",
fg_color = "#9da9a0",
italic = false,
},
new_tab_hover = {
bg_color = "#1e2327",
fg_color = "#d3c6aa",
italic = false,
},
},
2022-08-08 16:52:23 +00:00
},
2022-08-12 18:36:38 +00:00
["Tokyo Night"] = {
background = "#1a1b26",
foreground = "#a9b1d6",
cursor_fg = "#444b6a",
cursor_bg = "#9da9a0",
cursor_border = "#9da9a0",
selection_fg = "#787c99",
selection_bg = "#444b6a",
ansi = {
"#32344a",
"#f7768e",
"#9ece6a",
"#e0af68",
"#7aa2f7",
"#ad8ee6",
"#449dab",
"#787c99",
},
brights = {
"#444b6a",
"#ff7a93",
"#b9f27c",
"#ff9e64",
"#7da6ff",
"#bb9af7",
"#0db9d7",
"#acb0d0",
},
tab_bar = {
background = "#16161e",
active_tab = {
bg_color = "#1a1b26",
fg_color = "#a9b1d6",
},
inactive_tab = {
bg_color = "#16161e",
fg_color = "#787c99",
},
inactive_tab_hover = {
bg_color = "#16161e",
fg_color = "#a9b1d6",
italic = false,
},
new_tab = {
bg_color = "#16161e",
fg_color = "#9da9a0",
italic = false,
},
new_tab_hover = {
bg_color = "#16161e",
fg_color = "#a9b1d6",
italic = false,
},
},
}
2022-08-08 16:52:23 +00:00
},
window_padding = {
left = 4,
right = 4,
top = 4,
bottom = 4,
},
use_fancy_tab_bar = false,
tab_bar_at_bottom = true,
2022-08-12 18:36:38 +00:00
launch_menu = {},
keys = {
-- disable search (ctrl f = tab)
{key = "f", mods = "CTRL|SHIFT", action = "DisableDefaultAssignment"},
2022-09-01 23:48:07 +00:00
-- launcher
{key = "Space", mods = "CTRL|SHIFT", action = "ShowLauncher"},
},
mouse_bindings = {
-- Change the default selection behavior so that it only selects text,
-- but doesn't copy it to a clipboard or open hyperlinks.
{
event={Up={streak=1, button="Left"}},
mods="NONE",
action=wezterm.action{ExtendSelectionToMouseCursor="Cell"}
},
-- Don't automatically copy the selection to the clipboard
-- when double clicking a word
{
event={Up={streak=2, button="Left"}},
mods="NONE",
action="Nop",
},
-- Ctrl-click will open the link under the mouse cursor
{
event={Up={streak=1, button="Left"}},
mods="CTRL",
action="OpenLinkAtMouseCursor",
},
2022-08-12 18:36:38 +00:00
},
}
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
config.default_prog = {"D:/Programs/git-sdk-64/usr/bin/zsh", "-i"}
config.default_cwd = "D:/Downloads"
config.font = wezterm.font_with_fallback({
"Terminus (TTF)",
"SijiNGWindows",
"Unifont",
2022-09-01 23:48:07 +00:00
"Noto Emoji",
2022-08-12 18:36:38 +00:00
})
config.unix_domains = {
2022-08-08 16:52:23 +00:00
{
name = "unix",
},
2022-08-12 18:36:38 +00:00
}
config.default_gui_startup_args = {"connect", "unix"}
table.insert(config.launch_menu, {
label = "MSYS2",
args = {
"C:/msys64/msys2_shell.cmd",
"-no-start","-defterm","-msys2",
},
})
table.insert(config.launch_menu, {
label = "MinGW64",
args = {
"C:/msys64/msys2_shell.cmd",
"-no-start","-defterm","-mingw64",
},
})
2022-09-01 23:48:07 +00:00
table.insert(config.launch_menu, {
label = "cygwin",
args = {
"D:/Programs/cygwin/bin/bash",
"--login",
},
})
2022-08-12 18:36:38 +00:00
else
config.font = wezterm.font_with_fallback({
"Terminus",
"Siji",
"Unifont",
2022-09-01 23:48:07 +00:00
"Noto Emoji",
2022-08-12 18:36:38 +00:00
})
end
return config