dotfiles/home/apps/wezterm/wezterm.lua

36 lines
710 B
Lua
Raw Normal View History

local wezterm = require("wezterm")
2023-03-05 05:40:35 +01:00
local c = wezterm.config_builder()
c:set_strict_mode(true)
require("fonts").apply(c)
require("keys").apply(c)
require("theme").apply(c)
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-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 05:40:35 +01:00
require("bar").apply_to_config(c)
2023-03-05 05:40:35 +01:00
return c