-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.wezterm.lua
87 lines (79 loc) · 2.06 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
82
83
84
85
86
87
local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
config.color_scheme = 'Catppuccin Frappe'
-- Key bindings
config.leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 }
config.keys = {
{
key = '|',
mods = 'LEADER|SHIFT',
action = act.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = '_',
mods = 'LEADER|SHIFT',
action = act.SplitVertical { domain = 'CurrentPaneDomain' },
},
-- Send "CTRL-A" to the terminal when pressing CTRL-A, CTRL-A
{
key = 'a',
mods = 'LEADER|CTRL',
action = act.SendKey { key = 'a', mods = 'CTRL' },
},
}
-- Mouse bindings
config.mouse_bindings = {
{
event = { Down = { streak = 1, button = 'Right' } },
mods = 'NONE',
action = act.PasteFrom('PrimarySelection')
}
}
-- Font
config.font = wezterm.font_with_fallback { { family = 'MesloLGS Nerd Font Propo', weight = 'Bold' } }
config.font_size = 16.0
config.font_rules = {
{
italic = true,
intensity = 'Bold',
font = wezterm.font {
family = 'Operator Mono SSm',
italic = true,
weight = 'Medium'
}
},
{
italic = true,
intensity = 'Normal',
font = wezterm.font {
family = 'Operator Mono SSm',
italic = true,
weight = 'Book'
}
},
{
italic = true,
intensity = 'Half',
font = wezterm.font {
family = 'Operator Mono SSm',
italic = true,
weight = 'Light'
}
}
}
-- Tab bar
config.window_frame = {
font = wezterm.font { family = 'Operator Mono SSm', weight = 'Book', italic = true },
font_size = 14.0
}
-- Window
config.window_background_opacity = 0.96
config.macos_window_background_blur = 30
-- Misc
config.default_cursor_style = 'SteadyBar'
config.cursor_thickness = 1
config.default_cwd = wezterm.home_dir .. '/devel'
config.pane_focus_follows_mouse = true
config.term = 'wezterm'
return config