dotfiles/.config/wezterm/wezterm.lua

121 lines
3.6 KiB
Lua
Raw Normal View History

2022-12-03 14:42:03 +01:00
local wezterm = require("wezterm")
2021-04-01 16:02:19 +02:00
function font_with_fallback(name, params)
2022-12-03 14:42:03 +01:00
local names = { name, "Noto Color Emoji", "Iosevka Nerd Font Mono" }
return wezterm.font_with_fallback(names, params)
2021-04-01 16:02:19 +02:00
end
2023-01-27 09:46:22 +01:00
local themeShelmanDark = {
colors = {
2023-03-03 09:28:42 +01:00
-- foreground = "#ded9ce",
foreground = "#f0f0f0",
background = "#141619",
2023-01-27 09:46:22 +01:00
cursor_bg = "#FB8C00",
cursor_border = "#FB8C00",
split = "#444444",
ansi = { "#000000", "#ff605a", "#b1e869", "#ead89c", "#5da9f6", "#e86aff", "#82fff6", "#ded9ce" },
brights = { "#313131", "#f58b7f", "#dcf88f", "#eee5b2", "#a5c7ff", "#ddaaff", "#b6fff9", "#fefffe" },
tab_bar = {
background = "#000000",
active_tab = { bg_color = "#171a23", fg_color = "#c0b070", intensity = "Normal" },
inactive_tab = { bg_color = "#000000", fg_color = "#c0c0c0", intensity = "Half" },
inactive_tab_hover = { bg_color = "#333333", fg_color = "#909090", italic = true },
},
},
}
local themeShelmanLight = {
2022-12-03 14:42:03 +01:00
colors = {
foreground = "#000000",
background = "#fcfcfc",
2023-01-27 09:46:22 +01:00
cursor_bg = "#EA526F",
2022-12-03 14:42:03 +01:00
cursor_fg = "#ffffff",
cursor_border = "#cc0000",
split = "#444444",
selection_bg = "#FFCA28",
ansi = { "#212121", "#b7141e", "#457b23", "#f5971d", "#134eb2", "#550087", "#0e707c", "#eeeeee" },
brights = { "#424242", "#e83a3f", "#7aba39", "#fee92e", "#53a4f3", "#a94dbb", "#26bad1", "#d8d8d8" },
},
}
2021-04-01 16:02:19 +02:00
return {
2023-01-27 09:46:22 +01:00
colors = themeShelmanLight.colors,
2022-12-06 17:19:07 +01:00
font = font_with_fallback("Iosevka Shelman SS09", { weight = "Regular" }),
2022-12-03 14:42:03 +01:00
font_rules = {
{
italic = false,
intensity = "Half",
2022-12-06 17:19:07 +01:00
font = font_with_fallback("Iosevka Shelman SS09", { weight = "Thin" }),
2022-12-03 14:42:03 +01:00
},
{
italic = true,
intensity = "Normal",
2022-12-06 17:19:07 +01:00
font = font_with_fallback("Iosevka Shelman Curly Slab", { weight = "Light", italic = true }),
2022-12-03 14:42:03 +01:00
},
{
italic = true,
intensity = "Bold",
2022-12-06 17:19:07 +01:00
font = font_with_fallback("Iosevka Shelman SS15", { weight = "ExtraLight", italic = true }),
2022-12-03 14:42:03 +01:00
},
{
intensity = "Bold",
2022-12-06 17:19:07 +01:00
font = font_with_fallback("Iosevka Shelman SS09", { weight = "DemiBold" }),
2022-12-03 14:42:03 +01:00
},
},
freetype_load_target = "Light",
2022-12-06 17:19:07 +01:00
freetype_render_target = "HorizontalLcd",
--freetype_load_flags = "NO_HINTING",
--custom_block_glyphs = false,
2022-12-03 14:42:03 +01:00
warn_about_missing_glyphs = false,
bold_brightens_ansi_colors = false,
2022-12-06 17:19:07 +01:00
allow_square_glyphs_to_overflow_width = "Always",
2023-03-03 09:28:42 +01:00
font_size = 14,
2022-12-06 17:19:07 +01:00
line_height = 1.0,
cell_width = 0.9,
2022-12-03 14:42:03 +01:00
initial_cols = 128,
initial_rows = 45,
2023-01-27 09:46:22 +01:00
use_resize_increments = false,
2023-03-03 09:28:42 +01:00
-- window_background_opacity = 1.0, --0.93,
2023-01-27 09:46:22 +01:00
window_padding = {
2023-03-03 09:28:42 +01:00
left = "20",
right = "20",
top = "20",
bottom = "20",
2023-01-27 09:46:22 +01:00
},
2022-12-06 17:19:07 +01:00
window_decorations = "RESIZE",
window_frame = {
border_left_width = "2px",
border_right_width = "2px",
border_bottom_height = "2px",
border_top_height = "2px",
2023-03-03 09:28:42 +01:00
border_left_color = "#999999",
border_right_color = "#999999",
border_bottom_color = "#999999",
border_top_color = "#999999",
2022-12-03 14:42:03 +01:00
},
default_cursor_style = "SteadyBlock",
cursor_thickness = "3px",
2023-01-27 09:46:22 +01:00
cursor_blink_rate = 300,
2022-12-03 14:42:03 +01:00
enable_wayland = true,
enable_tab_bar = false,
tab_bar_at_bottom = true,
show_tab_index_in_tab_bar = true,
enable_scroll_bar = false,
scrollback_lines = 5000,
alternate_buffer_wheel_scroll_speed = 2,
check_for_updates = false,
status_update_interval = 100,
audible_bell = "Disabled",
term = "wezterm",
disable_default_key_bindings = true,
keys = {
{ 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
}