2021-04-01 16:02:19 +02:00
|
|
|
local wezterm = require 'wezterm';
|
|
|
|
|
|
|
|
function font_with_fallback(name, params)
|
2022-04-19 15:19:38 +02:00
|
|
|
local names = { name, "Noto Color Emoji", "Iosevka Nerd Font Mono" }
|
2021-04-01 16:02:19 +02:00
|
|
|
return wezterm.font_with_fallback(names, params)
|
|
|
|
end
|
|
|
|
|
2022-09-01 09:52:37 +02:00
|
|
|
local theme = {
|
2021-04-03 10:38:18 +02:00
|
|
|
colors = {
|
|
|
|
foreground = "#000000",
|
2021-04-15 20:47:06 +02:00
|
|
|
background = "#fcfcfc",
|
|
|
|
cursor_bg = "#ff3300",
|
|
|
|
cursor_fg = "#ffffff",
|
|
|
|
cursor_border = "#cc0000",
|
2021-04-03 10:38:18 +02:00
|
|
|
split = "#444444",
|
2021-07-12 09:02:46 +02:00
|
|
|
selection_bg = "#FFCA28",
|
2022-04-19 15:19:38 +02:00
|
|
|
ansi = { "#212121", "#b7141e", "#457b23", "#f5971d", "#134eb2", "#550087", "#0e707c", "#eeeeee" },
|
|
|
|
brights = { "#424242", "#e83a3f", "#7aba39", "#fee92e", "#53a4f3", "#a94dbb", "#26bad1", "#d8d8d8" },
|
2022-09-01 09:52:37 +02:00
|
|
|
}
|
2021-04-03 10:19:45 +02:00
|
|
|
};
|
|
|
|
|
2021-04-01 16:02:19 +02:00
|
|
|
return {
|
2021-04-03 10:19:45 +02:00
|
|
|
colors = theme.colors,
|
2022-04-19 15:19:38 +02:00
|
|
|
font = font_with_fallback("Iosevka Term SS09", { weight = "Regular" }),
|
2021-04-01 16:02:19 +02:00
|
|
|
font_rules = {
|
|
|
|
{
|
|
|
|
italic = false,
|
|
|
|
intensity = "Half",
|
2022-04-19 15:19:38 +02:00
|
|
|
font = font_with_fallback("Iosevka Term SS09", { weight = "Thin" })
|
2021-04-01 16:02:19 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
italic = true,
|
|
|
|
intensity = "Normal",
|
2022-04-19 15:19:38 +02:00
|
|
|
font = font_with_fallback("Iosevka Term Curly Slab", { weight = "Light", italic = true })
|
2021-04-01 16:02:19 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
italic = true,
|
|
|
|
intensity = "Bold",
|
2022-04-19 15:19:38 +02:00
|
|
|
font = font_with_fallback("Iosevka SS15", { weight = "ExtraLight", italic = true })
|
2021-04-01 16:02:19 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
intensity = "Bold",
|
2022-04-19 15:19:38 +02:00
|
|
|
font = font_with_fallback("Iosevka Term SS09", { weight = "DemiBold" })
|
2021-04-01 16:02:19 +02:00
|
|
|
},
|
|
|
|
},
|
2021-04-15 14:41:33 +02:00
|
|
|
freetype_load_target = "Light",
|
2021-07-12 09:02:46 +02:00
|
|
|
warn_about_missing_glyphs = false,
|
2021-04-15 14:41:33 +02:00
|
|
|
bold_brightens_ansi_colors = false,
|
2021-04-01 16:02:19 +02:00
|
|
|
|
2022-02-17 22:53:37 +01:00
|
|
|
font_size = 12.5,
|
2022-02-17 15:49:41 +01:00
|
|
|
line_height = 1.1,
|
2021-04-01 16:02:19 +02:00
|
|
|
|
2022-04-19 15:19:38 +02:00
|
|
|
initial_cols = 125,
|
|
|
|
initial_rows = 45,
|
2021-04-01 16:02:19 +02:00
|
|
|
window_padding = {
|
2022-02-17 22:53:37 +01:00
|
|
|
left = 0,
|
|
|
|
right = 0,
|
2022-04-19 11:04:09 +02:00
|
|
|
top = 0,
|
2022-01-24 13:27:49 +01:00
|
|
|
bottom = 0,
|
2021-04-01 16:02:19 +02:00
|
|
|
},
|
|
|
|
|
2022-01-30 19:53:35 +01:00
|
|
|
enable_wayland = true,
|
2021-07-12 09:02:46 +02:00
|
|
|
enable_tab_bar = false,
|
2021-04-27 14:36:57 +02:00
|
|
|
tab_bar_at_bottom = true,
|
2021-04-02 17:31:47 +02:00
|
|
|
show_tab_index_in_tab_bar = true,
|
2021-04-01 16:02:19 +02:00
|
|
|
enable_scroll_bar = false,
|
2021-04-15 20:47:06 +02:00
|
|
|
window_decorations = "RESIZE",
|
2021-04-01 16:02:19 +02:00
|
|
|
scrollback_lines = 5000,
|
2021-04-01 19:31:44 +02:00
|
|
|
alternate_buffer_wheel_scroll_speed = 2,
|
2021-04-01 16:02:19 +02:00
|
|
|
check_for_updates = false,
|
2021-04-01 19:31:44 +02:00
|
|
|
status_update_interval = 100,
|
2022-01-30 19:53:35 +01:00
|
|
|
audible_bell = "Disabled",
|
2021-04-15 14:41:33 +02:00
|
|
|
term = "wezterm",
|
|
|
|
|
2021-11-11 09:36:24 +01:00
|
|
|
disable_default_key_bindings = true,
|
2021-04-01 16:02:19 +02:00
|
|
|
keys = {
|
2022-04-19 15:19:38 +02:00
|
|
|
{ key = "c", mods = "ALT|SHIFT", action = wezterm.action { CopyTo = "ClipboardAndPrimarySelection" } },
|
|
|
|
{ key = "v", mods = "ALT|SHIFT", action = "Paste" },
|
|
|
|
{ key = "0", mods = "CTRL", action = "ResetFontSize" },
|
|
|
|
{ key = "-", mods = "CTRL", action = "DecreaseFontSize" },
|
|
|
|
{ key = "=", mods = "CTRL", action = "IncreaseFontSize" },
|
|
|
|
{ key = "Enter", mods = "ALT", action = "ToggleFullScreen" },
|
2021-04-01 16:02:19 +02:00
|
|
|
},
|
|
|
|
}
|