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

71 lines
1.5 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
2023-11-04 20:30:07 +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
cfg.font = wt.font('Fantasque Sans Mono')
cfg.font_size = fn.set_by_os{
2023-10-16 12:24:24 +03:00
Darwin = 16,
2023-10-07 00:41:05 +03:00
others = 12
}
-- visuals
cfg.window_decorations = 'INTEGRATED_BUTTONS|RESIZE|MACOS_FORCE_ENABLE_SHADOW'
cfg.xcursor_theme = 'Adwaita'
2023-10-06 17:23:22 +03:00
cfg.use_fancy_tab_bar = true
cfg.hide_tab_bar_if_only_one_tab = false
cfg.show_new_tab_button_in_tab_bar = false
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 = {
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
require('overrides')
2023-03-07 19:27:59 +02:00
2023-10-06 17:23:22 +03:00
return cfg