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

67 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-08-25 18:15:26 +03:00
local tab_bar_fg = '#657b83'
2023-10-06 14:20:04 +03:00
local tab_bar_bg = '#eee8d5'
local tab_bar_bg_active = '#fdf6e3'
2023-01-23 16:27:51 +02:00
local tab_bar_defaults = {
bg_color = tab_bar_bg,
2023-10-07 00:41:05 +03:00
fg_color = tab_bar_fg
2023-01-23 16:27:51 +02:00
}
local tab_bar_active = {
2023-10-06 14:20:04 +03:00
bg_color = tab_bar_bg_active,
2023-10-07 00:41:05 +03:00
fg_color = tab_bar_fg
2023-01-23 16:27:51 +02:00
}
2023-10-07 00:41:05 +03:00
local cfg = wt.config_builder()
-- misc
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{
Darwin = 15,
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-07 00:41:05 +03:00
cfg.color_scheme = 'Solarized Light (Gogh)'
2023-10-06 17:23:22 +03:00
cfg.colors = {
2023-08-25 18:15:26 +03:00
cursor_bg = '#cb4b16',
cursor_fg = '#fdf6e3',
2023-01-23 16:27:51 +02:00
tab_bar = {
background = tab_bar_bg,
active_tab = tab_bar_active,
inactive_tab = tab_bar_defaults,
2023-10-07 00:41:05 +03:00
inactive_tab_hover = tab_bar_defaults
2023-01-23 16:27:51 +02:00
}
2022-09-06 11:12:33 +03:00
}
2023-10-07 00:41:05 +03:00
cfg.window_padding = {
left = '5pt',
right = 0,
top = '2pt',
bottom = 0
}
cfg.window_frame = {
active_titlebar_bg = tab_bar_bg,
inactive_titlebar_bg = tab_bar_bg
}
-- callbacks
require('overrides')
2023-03-07 19:27:59 +02:00
2023-10-06 17:23:22 +03:00
return cfg