2023-03-01 03:10:30 +00:00
|
|
|
local wezterm = require("wezterm")
|
2023-08-04 18:37:07 +00:00
|
|
|
local act = wezterm.action
|
|
|
|
|
2023-12-20 18:24:45 +00:00
|
|
|
-- Custom fonts config
|
2024-03-03 07:19:36 +00:00
|
|
|
-- https://github.com/be5invis/Iosevka
|
|
|
|
local font_iosevka = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Iosevka Term SS08",
|
2024-03-20 07:01:52 +00:00
|
|
|
harfbuzz_features = { "calt=0", "CLIK" },
|
2024-03-03 07:19:36 +00:00
|
|
|
}),
|
|
|
|
font_size = 16.0,
|
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBar",
|
|
|
|
}
|
|
|
|
|
2024-01-05 03:31:02 +00:00
|
|
|
-- https://github.com/jenskutilek/sudo-font
|
2024-01-05 02:53:43 +00:00
|
|
|
local font_sudo = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Sudo Var",
|
2024-03-11 20:44:48 +00:00
|
|
|
harfbuzz_features = { "cv06" },
|
2024-01-05 02:53:43 +00:00
|
|
|
}),
|
|
|
|
font_size = 18.0,
|
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBar",
|
|
|
|
}
|
|
|
|
|
2024-01-05 03:31:02 +00:00
|
|
|
-- https://github.com/pcaro90/hermit
|
2024-01-05 02:53:43 +00:00
|
|
|
local font_hermit = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Hermit",
|
|
|
|
}),
|
|
|
|
font_size = 14.0,
|
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBar",
|
|
|
|
}
|
|
|
|
|
2024-03-25 09:30:07 +00:00
|
|
|
local font_ibm = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "IBM Plex Mono",
|
|
|
|
}),
|
|
|
|
font_size = 14.0,
|
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBar",
|
|
|
|
}
|
|
|
|
|
2024-01-05 03:31:02 +00:00
|
|
|
-- https://int10h.org/blog/2018/05/flexi-ibm-vga-scalable-truetype-font/
|
2024-01-05 02:53:43 +00:00
|
|
|
local font_flexi_ibm = {
|
2023-05-30 18:08:54 +00:00
|
|
|
font = wezterm.font({
|
2023-12-20 18:24:45 +00:00
|
|
|
family = "Flexi IBM VGA False",
|
2023-05-30 18:08:54 +00:00
|
|
|
}),
|
2023-12-20 18:24:45 +00:00
|
|
|
font_rules = {
|
|
|
|
{
|
|
|
|
intensity = "Bold",
|
|
|
|
italic = true,
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Flexi IBM VGA False",
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
intensity = "Bold",
|
|
|
|
italic = false,
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Flexi IBM VGA False",
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
intensity = "Normal",
|
|
|
|
italic = true,
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Flexi IBM VGA False",
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
},
|
2024-03-25 09:30:07 +00:00
|
|
|
font_size = 16.0,
|
2023-03-15 06:16:48 +00:00
|
|
|
line_height = 1.2,
|
2023-12-20 18:31:26 +00:00
|
|
|
default_cursor_style = "SteadyBlock",
|
2023-12-20 18:24:45 +00:00
|
|
|
}
|
|
|
|
|
2024-01-12 19:21:34 +00:00
|
|
|
-- http://www.kreativekorp.com/software/fonts/fairfaxhd/
|
|
|
|
local font_fairfax = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Fairfax Hax HD",
|
|
|
|
}),
|
2024-03-25 09:30:07 +00:00
|
|
|
font_size = 16.0,
|
2024-01-12 19:21:34 +00:00
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBlock",
|
|
|
|
}
|
|
|
|
|
2024-01-19 16:57:49 +00:00
|
|
|
local font_0xproto = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "0xProto",
|
|
|
|
}),
|
2024-01-23 16:41:38 +00:00
|
|
|
font_size = 14.0,
|
2024-01-19 16:57:49 +00:00
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBar",
|
|
|
|
}
|
|
|
|
|
2024-01-05 03:31:02 +00:00
|
|
|
-- https://berkeleygraphics.com/typefaces/berkeley-mono/
|
|
|
|
local font_berkeley = {
|
|
|
|
font = wezterm.font({
|
|
|
|
family = "Berkeley Mono",
|
|
|
|
harfbuzz_features = { "ss02" },
|
|
|
|
}),
|
2024-01-23 16:41:38 +00:00
|
|
|
font_size = 14.0,
|
2024-01-05 03:31:02 +00:00
|
|
|
line_height = 1.2,
|
|
|
|
default_cursor_style = "SteadyBar",
|
|
|
|
}
|
|
|
|
|
2024-03-25 09:30:07 +00:00
|
|
|
local current_font = font_ibm
|
2024-01-05 03:31:02 +00:00
|
|
|
local current_color_scheme = "Catppuccin Mocha"
|
2024-01-05 02:53:43 +00:00
|
|
|
|
2023-12-20 18:24:45 +00:00
|
|
|
return {
|
2024-01-05 02:53:43 +00:00
|
|
|
font = current_font.font,
|
|
|
|
font_rules = current_font.font_rules,
|
|
|
|
font_size = current_font.font_size,
|
|
|
|
line_height = current_font.line_height,
|
2023-03-15 06:16:48 +00:00
|
|
|
use_cap_height_to_scale_fallback_fonts = true,
|
2023-07-06 03:05:01 +00:00
|
|
|
|
2024-01-05 03:31:02 +00:00
|
|
|
color_scheme = current_color_scheme,
|
2023-07-06 03:05:01 +00:00
|
|
|
|
2023-03-01 05:31:19 +00:00
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
key = "LeftArrow",
|
|
|
|
mods = "CTRL|SHIFT",
|
2023-08-04 18:37:07 +00:00
|
|
|
action = act.ActivateTabRelative(-1),
|
2023-03-01 05:31:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "RightArrow",
|
|
|
|
mods = "CTRL|SHIFT",
|
2023-08-04 18:37:07 +00:00
|
|
|
action = act.ActivateTabRelative(1),
|
|
|
|
},
|
|
|
|
-- Sync with Zellij
|
|
|
|
{
|
|
|
|
key = "n",
|
|
|
|
mods = "ALT",
|
|
|
|
action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "m",
|
|
|
|
mods = "ALT",
|
|
|
|
action = act.SplitVertical({ domain = "CurrentPaneDomain" }),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "p",
|
|
|
|
mods = "ALT",
|
2023-08-19 12:00:29 +00:00
|
|
|
action = act.ActivatePaneDirection("Next"),
|
2023-08-04 18:37:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "o",
|
|
|
|
mods = "ALT",
|
|
|
|
action = act.SpawnCommandInNewTab({}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "[",
|
|
|
|
mods = "ALT",
|
|
|
|
action = act.ActivateTabRelative(-1),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "]",
|
|
|
|
mods = "ALT",
|
|
|
|
action = act.ActivateTabRelative(1),
|
2023-03-01 05:31:19 +00:00
|
|
|
},
|
|
|
|
},
|
2023-07-06 03:05:01 +00:00
|
|
|
|
2023-08-04 18:37:07 +00:00
|
|
|
use_fancy_tab_bar = false,
|
2023-03-01 03:10:30 +00:00
|
|
|
hide_tab_bar_if_only_one_tab = true,
|
|
|
|
tab_bar_at_bottom = true,
|
2023-08-04 18:37:07 +00:00
|
|
|
tab_and_split_indices_are_zero_based = true,
|
2023-08-19 12:00:29 +00:00
|
|
|
tab_max_width = 24,
|
2023-07-06 03:05:01 +00:00
|
|
|
|
2023-09-21 13:50:33 +00:00
|
|
|
native_macos_fullscreen_mode = true,
|
2023-07-06 03:05:01 +00:00
|
|
|
|
2024-01-05 02:53:43 +00:00
|
|
|
default_cursor_style = current_font.default_cursor_style,
|
2023-03-01 10:36:31 +00:00
|
|
|
audible_bell = "Disabled",
|
2023-08-19 12:03:35 +00:00
|
|
|
|
|
|
|
front_end = "WebGpu",
|
2023-03-01 03:10:30 +00:00
|
|
|
}
|