-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
65 lines (56 loc) · 1.4 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
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = "s3r0 modified (terminal.sexy)"
config.keys = {
{
key = "f",
mods = "CTRL",
action = wezterm.action.ToggleFullScreen,
},
-- This will create a new split and run your default program inside it
{
key = "s",
mods = "CTRL",
action = wezterm.action.SplitVertical({
domain = "CurrentPaneDomain",
}),
},
{
key = "d",
mods = "CTRL",
action = wezterm.action.CloseCurrentPane({ confirm = false }),
},
}
config.font_size = 16.0
config.window_background_opacity = 1.0 -- Set opacity for background
config.window_background_gradient = {
colors = {
"#1e1e1e", -- Background color (use your desired color here)
"#1e1e1e", -- End color of the gradient (same as start color for solid effect)
},
}
-- Optionally set a background color using a gradient
config.background = {
{
source = {
File = wezterm.home_dir .. "/.config/wezterm/hxtree.png",
},
vertical_align = "Bottom",
horizontal_align = "Right",
hsb = {
saturation = 0.3,
brightness = 0.1,
},
width = 300,
opacity = 0.5,
height = 300,
repeat_x = "NoRepeat",
repeat_y = "NoRepeat",
},
}
-- and finally, return the configuration to wezterm
return config