-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
56 lines (48 loc) · 1.15 KB
/
.wezterm.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
-- Wezterm config
-- R: v0.1.2; E: 2024/09/20
-- Setup
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
-- Shell
config.default_prog = { 'powershell.exe' }
-- Window
config.initial_cols = 110;
config.initial_rows = 30;
-- Appearance: misc.
config.color_scheme = 'iceberg-dark'
config.font = wezterm.font('Consolas 7NF')
config.font_size = 11.0
config.hide_tab_bar_if_only_one_tab = true
config.window_padding = {
left = '1cell',
right = '1cell',
top = '0.5cell',
bottom = '0.5cell'
}
-- Appearance: use padding unless in vim/nvim (broken)
--[[ wezterm.on('update-status', function(window, pane)
local overrides = window:get_config_overrides() or {}
if string.find(pane:get_title(), 'VIM') then
overrides.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0
}
else
overrides.window_padding = default_padding
end
window:set_config_overrides(overrides)
end) --]]
-- Appearance: OS specific
config.window_background_opacity = 0.8
config.win32_system_backdrop = 'Acrylic' -- For Windows 11
-- Keys
config.keys = {
{
key = 'F11',
action = wezterm.action.ToggleFullScreen
}
}
-- Return config
return config