-
Notifications
You must be signed in to change notification settings - Fork 1
/
.wezterm.lua
81 lines (64 loc) · 2.16 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
-- Pull in the wezterm API
local wezterm = require 'wezterm'
local mux = wezterm.mux
-- implement fullscreen from start
wezterm.on('gui-startup', function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():toggle_fullscreen()
end)
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
-- config.color_scheme = 'Tomorrow Night Eighties'
local TMEcolor = wezterm.color.get_builtin_schemes()['Tomorrow Night Eighties'];
TMEcolor.ansi[1] = '#333333'
TMEcolor.brights[1] = '#3d3d3d'
config.color_schemes = {
['TME'] = TMEcolor,
}
config.color_scheme = 'TME';
config.keys = {
{ key = 'F11' , action = wezterm.action.ToggleFullScreen, },
{ key = 'Backspace', mods = 'CTRL' , action = wezterm.action.SendString '\x1b\x7f' },
{ key = '=' , mods = 'CTRL' , action = wezterm.action.DisableDefaultAssignment },
{ key = '-' , mods = 'CTRL' , action = wezterm.action.DisableDefaultAssignment },
{ key = '=' , mods = 'ALT' , action = wezterm.action.IncreaseFontSize },
{ key = '-' , mods = 'ALT' , action = wezterm.action.DecreaseFontSize },
}
config.hide_tab_bar_if_only_one_tab = true
config.font_size = 9.0
config.underline_thickness = 1.5
config.window_background_opacity = 0.85
-- config.win32_system_backdrop = 'Acrylic'
-- config.win32_acrylic_accent_color = '#111111'
config.colors = {
background = '#111111',
}
local font = 'RobotoMono Nerd Font Mono'
if wezterm.target_triple:find("darwin") then
font = 'JetBrainsMonoNL Nerd Font Mono'
end
config.font = wezterm.font(font)
if wezterm.target_triple:find("windows") then
config.default_domain = 'WSL:Ubuntu'
end
-- config.background = {
-- {
-- width = "100%",
-- height = "100%",
-- source = {
-- Gradient={
-- preset="Warm",
-- orientation = { Linear = { angle = -45.0 } },
-- }
-- },
-- }
-- }
-- and finally, return the configuration to wezterm
return config