2023-01-21 12:53:08 +02:00
|
|
|
local wt = require('wezterm')
|
2023-10-07 00:41:05 +03:00
|
|
|
local kb = require('keybinds')
|
2023-10-06 19:48:04 +03:00
|
|
|
local fn = require('functions')
|
2023-10-06 17:23:22 +03:00
|
|
|
|
2023-10-16 12:31:18 +03:00
|
|
|
-- colors
|
2024-03-28 16:45:27 +02:00
|
|
|
local color_scheme = 'GruvboxDark'
|
|
|
|
local tab_fg = '#ebdbb2'
|
|
|
|
local tab_bg = '#504945'
|
|
|
|
local tab_bg_active = '#282828'
|
|
|
|
local cursor_fg = '#ebdbb2'
|
|
|
|
local cursor_bg = '#d65d0e'
|
2023-10-16 12:31:18 +03:00
|
|
|
|
2023-10-07 00:41:05 +03:00
|
|
|
-- misc
|
2023-10-16 12:31:18 +03:00
|
|
|
local cfg = wt.config_builder()
|
2023-10-07 00:41:05 +03:00
|
|
|
cfg.leader = kb.leader
|
|
|
|
cfg.keys = kb.keybinds
|
|
|
|
cfg.audible_bell = 'Disabled'
|
|
|
|
cfg.check_for_updates = false
|
|
|
|
|
|
|
|
-- fonts & text
|
|
|
|
cfg.harfbuzz_features = nil
|
|
|
|
cfg.cursor_blink_rate = 0
|
|
|
|
cfg.bold_brightens_ansi_colors = false
|
2024-05-07 00:32:27 +03:00
|
|
|
cfg.font = wt.font('Cascadia Mono PL')
|
2024-05-02 15:44:48 +03:00
|
|
|
cfg.harfbuzz_features = {'ss01', 'ss19', 'ss20'}
|
2023-10-07 00:41:05 +03:00
|
|
|
cfg.font_size = fn.set_by_os{
|
2024-04-02 12:51:13 +03:00
|
|
|
Darwin = 14,
|
|
|
|
others = 11
|
2023-10-07 00:41:05 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
-- visuals
|
2024-04-02 12:51:13 +03:00
|
|
|
cfg.window_decorations = 'INTEGRATED_BUTTONS|RESIZE'
|
2023-10-07 00:41:05 +03:00
|
|
|
cfg.xcursor_theme = 'Adwaita'
|
2024-02-14 14:33:45 +02:00
|
|
|
cfg.use_fancy_tab_bar = true
|
2023-10-06 17:23:22 +03:00
|
|
|
cfg.hide_tab_bar_if_only_one_tab = false
|
|
|
|
cfg.show_new_tab_button_in_tab_bar = false
|
2024-02-14 14:33:45 +02:00
|
|
|
cfg.tab_max_width = 128
|
2023-10-16 12:26:39 +03:00
|
|
|
cfg.window_padding = {
|
|
|
|
left = '5pt',
|
|
|
|
right = 0,
|
|
|
|
top = '2pt',
|
|
|
|
bottom = 0
|
|
|
|
}
|
|
|
|
|
2023-10-16 12:31:18 +03:00
|
|
|
-- theming
|
|
|
|
cfg.color_scheme = color_scheme
|
2023-10-06 17:23:22 +03:00
|
|
|
cfg.colors = {
|
2023-10-16 12:31:18 +03:00
|
|
|
cursor_fg = cursor_fg,
|
|
|
|
cursor_bg = cursor_bg,
|
2023-01-23 16:27:51 +02:00
|
|
|
tab_bar = {
|
2023-10-13 13:18:23 +03:00
|
|
|
background = tab_bg,
|
|
|
|
active_tab = {
|
|
|
|
fg_color = tab_fg,
|
|
|
|
bg_color = tab_bg_active
|
|
|
|
},
|
|
|
|
inactive_tab = {
|
|
|
|
fg_color = tab_fg,
|
|
|
|
bg_color = tab_bg
|
|
|
|
}
|
2023-01-23 16:27:51 +02:00
|
|
|
}
|
2022-09-06 11:12:33 +03:00
|
|
|
}
|
2023-10-13 13:18:23 +03:00
|
|
|
cfg.colors.tab_bar.inactive_tab_hover = cfg.colors.tab_bar.inactive_tab
|
|
|
|
cfg.window_frame = {
|
|
|
|
active_titlebar_bg = tab_bg,
|
|
|
|
inactive_titlebar_bg = tab_bg
|
|
|
|
}
|
2023-10-07 00:41:05 +03:00
|
|
|
|
|
|
|
-- callbacks
|
2024-02-14 15:56:25 +02:00
|
|
|
wt.on('format-window-title', function() return 'WezTerm' end)
|
2023-10-07 00:41:05 +03:00
|
|
|
require('overrides')
|
2023-03-07 19:27:59 +02:00
|
|
|
|
2023-10-06 17:23:22 +03:00
|
|
|
return cfg
|