2023-01-31 09:38:11 +01:00
|
|
|
local wezterm = require("wezterm")
|
|
|
|
|
2023-03-05 14:55:04 +01:00
|
|
|
local c = {}
|
|
|
|
if wezterm.config_builder then
|
|
|
|
c = wezterm.config_builder()
|
|
|
|
c:set_strict_mode(true)
|
|
|
|
end
|
2023-03-05 05:40:35 +01:00
|
|
|
|
|
|
|
require("fonts").apply(c)
|
|
|
|
require("keys").apply(c)
|
2023-04-09 23:51:31 +02:00
|
|
|
c.window_padding = {
|
2023-04-11 15:06:34 +02:00
|
|
|
left = 0,
|
|
|
|
right = 0,
|
|
|
|
top = 0,
|
|
|
|
bottom = 0,
|
2023-04-09 23:51:31 +02:00
|
|
|
}
|
2023-01-31 09:38:11 +01:00
|
|
|
|
2023-03-05 05:40:35 +01:00
|
|
|
-- set up terminfo on nix
|
|
|
|
c.set_environment_variables = {
|
|
|
|
TERMINFO_DIRS = wezterm.home_dir .. "/.nix-profile/share/terminfo",
|
|
|
|
}
|
|
|
|
-- window
|
|
|
|
c.window_decorations = "RESIZE"
|
|
|
|
c.window_padding = {
|
|
|
|
left = 0,
|
|
|
|
right = 0,
|
|
|
|
top = 0,
|
|
|
|
bottom = 0,
|
|
|
|
}
|
|
|
|
-- dim unfocused panes
|
|
|
|
c.inactive_pane_hsb = {
|
|
|
|
saturation = 1.0,
|
|
|
|
brightness = 0.6,
|
2023-01-31 09:38:11 +01:00
|
|
|
}
|
2023-03-05 05:40:35 +01:00
|
|
|
-- etc.
|
|
|
|
c.adjust_window_size_when_changing_font_size = false
|
|
|
|
c.audible_bell = "Disabled"
|
|
|
|
c.clean_exit_codes = { 130 }
|
|
|
|
c.default_cursor_style = "BlinkingBar"
|
2023-03-05 14:55:04 +01:00
|
|
|
c.launch_menu = {
|
|
|
|
{ label = "Music player", args = { "ncmpcpp" } },
|
|
|
|
}
|
|
|
|
c.command_palette_font_size = 16.0
|
2023-03-10 07:22:01 +01:00
|
|
|
c.window_background_opacity = 0.9
|
2023-03-05 14:55:04 +01:00
|
|
|
c.window_frame = {
|
|
|
|
font_size = 18.0,
|
|
|
|
}
|
2023-03-03 21:39:43 +01:00
|
|
|
|
2023-03-21 05:44:39 +01:00
|
|
|
wezterm.plugin
|
|
|
|
.require("https://github.com/catppuccin/wezterm")
|
|
|
|
.apply_to_config(c, {
|
|
|
|
flavor = "mocha",
|
|
|
|
sync = true,
|
|
|
|
sync_flavors = { light = "latte", dark = "mocha" },
|
|
|
|
})
|
2023-03-20 23:30:58 +01:00
|
|
|
wezterm.plugin
|
|
|
|
.require("https://github.com/nekowinston/wezterm-bar")
|
|
|
|
.apply_to_config(c, {
|
|
|
|
indicator = {
|
2023-03-21 05:44:39 +01:00
|
|
|
leader = { off = "ﱤ", on = "ﱣ" },
|
2023-03-20 23:30:58 +01:00
|
|
|
},
|
|
|
|
})
|
2023-03-03 21:39:43 +01:00
|
|
|
|
2023-03-05 05:40:35 +01:00
|
|
|
return c
|