dotfiles/data/wezterm/wezterm.lua

95 lines
1.9 KiB
Lua
Raw Normal View History

2023-03-01 03:10:30 +00:00
local wezterm = require("wezterm")
local act = wezterm.action
-- Custom fonts config
-- wezterm ls-fonts --list-system
local function font_with_fallback(main_font)
local fonts = {
main_font,
{
family = "Apple Color Emoji",
assume_emoji_presentation = true,
},
"Symbols Nerd Font Mono",
}
return wezterm.font_with_fallback(fonts)
end
2024-03-03 07:19:36 +00:00
-- https://github.com/be5invis/Iosevka
local font_iosevka = {
font = font_with_fallback({
2024-05-16 07:31:32 +00:00
family = "Iosevka Pacman",
2024-03-03 07:19:36 +00:00
}),
font_size = 16.0,
line_height = 1.2,
default_cursor_style = "SteadyBar",
}
local current_font = font_iosevka
2024-01-05 03:31:02 +00:00
local current_color_scheme = "Catppuccin Mocha"
2024-01-05 02:53:43 +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",
action = act.ActivateTabRelative(-1),
2023-03-01 05:31:19 +00:00
},
{
key = "RightArrow",
mods = "CTRL|SHIFT",
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"),
},
{
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
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,
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
window_background_opacity = 0.95,
macos_window_background_blur = 32,
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
}