1
0
Fork 0
vdotfiles/gui/.config/wezterm/wezterm.lua

72 lines
1.6 KiB
Lua
Raw Normal View History

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.cursor_blink_rate = 0
cfg.bold_brightens_ansi_colors = false
2024-05-20 18:11:54 +03:00
cfg.font = wt.font('Cascadia Mono PL')
cfg.harfbuzz_features = {'ss01', 'ss19', 'ss20'}
2023-10-07 00:41:05 +03:00
cfg.font_size = fn.set_by_os{
2024-05-20 18:11:54 +03:00
Darwin = 14,
others = 11
2023-10-07 00:41:05 +03:00
}
-- visuals
cfg.window_decorations = 'RESIZE'
2023-10-07 00:41:05 +03:00
cfg.xcursor_theme = 'Adwaita'
cfg.use_fancy_tab_bar = false
cfg.hide_tab_bar_if_only_one_tab = false
cfg.show_new_tab_button_in_tab_bar = false
2024-05-22 21:37:27 +03:00
cfg.tab_max_width = 24
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 = {
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
}
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