2023-01-31 09:38:11 +01:00
|
|
|
local wezterm = require("wezterm")
|
|
|
|
local theme = require("theme")
|
|
|
|
require("bar")
|
|
|
|
|
2023-02-09 17:18:50 +01:00
|
|
|
wezterm.GLOBAL = {
|
2023-03-04 05:50:49 +01:00
|
|
|
font = "berkeley",
|
2023-02-09 17:18:50 +01:00
|
|
|
enable_tab_bar = true,
|
|
|
|
}
|
2023-03-04 05:50:49 +01:00
|
|
|
local font = require("fonts").get_font(wezterm.GLOBAL.font)
|
2023-01-31 09:38:11 +01:00
|
|
|
|
2023-03-03 21:39:43 +01:00
|
|
|
local options = {
|
2023-02-20 20:57:37 +01:00
|
|
|
set_environment_variables = {
|
|
|
|
TERMINFO_DIRS = wezterm.home_dir .. "/.nix-profile/share/terminfo",
|
|
|
|
},
|
2023-02-09 17:18:50 +01:00
|
|
|
-- font
|
|
|
|
font = font.font,
|
|
|
|
font_size = font.size,
|
|
|
|
-- window
|
|
|
|
window_decorations = "RESIZE",
|
|
|
|
window_padding = {
|
|
|
|
left = 0,
|
|
|
|
right = 0,
|
|
|
|
top = 0,
|
|
|
|
bottom = 0,
|
|
|
|
},
|
|
|
|
inactive_pane_hsb = {
|
|
|
|
saturation = 1.0,
|
|
|
|
brightness = 0.6,
|
|
|
|
},
|
|
|
|
-- theme
|
|
|
|
color_schemes = theme.get_custom_colorschemes(),
|
|
|
|
color_scheme = theme.scheme_for_appearance(wezterm.gui.get_appearance(), {
|
2023-02-15 06:27:38 +01:00
|
|
|
dark = "Catppuccin Americano",
|
2023-02-09 17:18:50 +01:00
|
|
|
light = "Catppuccin Latte",
|
|
|
|
}),
|
|
|
|
-- tab bar
|
|
|
|
tab_bar_at_bottom = true,
|
|
|
|
tab_max_width = 32,
|
|
|
|
use_fancy_tab_bar = false,
|
|
|
|
window_background_opacity = 1.00,
|
|
|
|
hide_tab_bar_if_only_one_tab = false,
|
|
|
|
enable_tab_bar = wezterm.GLOBAL.tab_bar_hidden,
|
|
|
|
-- etc.
|
|
|
|
adjust_window_size_when_changing_font_size = false,
|
|
|
|
use_resize_increments = false,
|
|
|
|
audible_bell = "Disabled",
|
|
|
|
clean_exit_codes = { 130 },
|
|
|
|
default_cursor_style = "BlinkingBar",
|
|
|
|
enable_scroll_bar = false,
|
2023-01-31 09:38:11 +01:00
|
|
|
}
|
2023-03-03 21:39:43 +01:00
|
|
|
|
2023-03-03 21:40:26 +01:00
|
|
|
for k, v in pairs(require("keys")) do
|
2023-03-03 21:39:43 +01:00
|
|
|
options[k] = v
|
|
|
|
end
|
|
|
|
|
|
|
|
return options
|