2023-01-31 09:38:11 +01:00
|
|
|
local wezterm = require("wezterm")
|
2023-07-13 08:45:39 +02:00
|
|
|
local c = wezterm.config_builder()
|
2024-02-11 16:54:31 +01:00
|
|
|
local utils = require("config.utils")
|
|
|
|
|
2023-11-08 11:54:01 +01:00
|
|
|
require("config.keys").apply(c)
|
2023-01-31 09:38:11 +01:00
|
|
|
|
2023-11-02 17:10:58 +01:00
|
|
|
c.font = wezterm.font_with_fallback({
|
2024-02-18 13:51:38 +01:00
|
|
|
"Berkeley Mono",
|
2023-11-02 17:10:58 +01:00
|
|
|
"Symbols Nerd Font",
|
|
|
|
})
|
2023-11-08 11:54:01 +01:00
|
|
|
c.front_end = "WebGpu"
|
2023-11-02 17:10:58 +01:00
|
|
|
c.font_size = 13
|
|
|
|
c.harfbuzz_features = { "calt=1", "ss01=1" }
|
|
|
|
c.command_palette_font_size = c.font_size * 1.1
|
|
|
|
c.window_frame = {
|
|
|
|
font = wezterm.font("IBM Plex Sans"),
|
|
|
|
font_size = c.font_size,
|
|
|
|
}
|
2023-11-08 11:54:01 +01:00
|
|
|
|
2024-03-11 13:10:03 +01:00
|
|
|
c.window_decorations = "RESIZE|INTEGRATED_BUTTONS"
|
|
|
|
c.window_padding = { left = 0, right = 0, top = 50, bottom = 0 }
|
2023-03-05 05:40:35 +01:00
|
|
|
c.adjust_window_size_when_changing_font_size = false
|
|
|
|
c.audible_bell = "Disabled"
|
|
|
|
c.default_cursor_style = "BlinkingBar"
|
2023-11-02 17:10:58 +01:00
|
|
|
c.inactive_pane_hsb = { brightness = 0.90 }
|
2023-03-03 21:39:43 +01:00
|
|
|
|
2024-02-11 16:54:31 +01:00
|
|
|
-- some annoying bug is causing crashes on sway
|
|
|
|
if utils.is_darwin() then
|
|
|
|
require("bar.plugin").apply_to_config(c)
|
|
|
|
end
|
|
|
|
|
2023-11-08 11:54:01 +01:00
|
|
|
require("catppuccin.plugin").apply_to_config(c, {
|
2024-03-07 13:44:33 +01:00
|
|
|
color_overrides = {
|
|
|
|
mocha = {
|
|
|
|
rosewater = "#ece3e1",
|
|
|
|
flamingo = "#e1d2d2",
|
|
|
|
pink = "#ddccd8",
|
|
|
|
mauve = "#bbb2c9",
|
|
|
|
red = "#c4a2aa",
|
|
|
|
maroon = "#cbadb1",
|
|
|
|
peach = "#d5beb4",
|
|
|
|
yellow = "#ece3d3",
|
|
|
|
green = "#b9ddb6",
|
|
|
|
teal = "#badad4",
|
|
|
|
sky = "#b8d4db",
|
|
|
|
sapphire = "#a9c0ce",
|
|
|
|
blue = "#aab3c7",
|
|
|
|
lavender = "#bfc1d2",
|
|
|
|
text = "#d3d6e1",
|
|
|
|
subtext1 = "#bec2d2",
|
|
|
|
subtext0 = "#a8adc3",
|
|
|
|
overlay2 = "#9299b4",
|
|
|
|
overlay1 = "#7c84a5",
|
|
|
|
overlay0 = "#686f94",
|
|
|
|
surface2 = "#555a7b",
|
|
|
|
surface1 = "#434664",
|
|
|
|
surface0 = "#30314b",
|
|
|
|
base = "#101010",
|
|
|
|
mantle = "#090909",
|
|
|
|
crust = "#080808",
|
|
|
|
},
|
|
|
|
},
|
2024-02-15 18:49:22 +01:00
|
|
|
sync = true,
|
2023-11-08 11:54:01 +01:00
|
|
|
})
|
2023-03-03 21:39:43 +01:00
|
|
|
|
2023-03-05 05:40:35 +01:00
|
|
|
return c
|