-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_wezterm.lua
80 lines (73 loc) · 1.78 KB
/
dot_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
local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.default_prog = { 'bash' }
config.color_scheme = 'Glacier'
config.window_decorations = 'RESIZE'
config.font = wezterm.font 'JetBrainsMono Nerd Font Mono'
config.hide_tab_bar_if_only_one_tab = true
config.window_background_opacity = 0.93
config.colors = {
background = '#1c2128',
selection_fg = '#1c2128',
selection_bg = '#7ce38b',
cursor_bg = '#7ce38b',
cursor_border = '#7ce38b',
cursor_fg = '#1c2128',
}
config.disable_default_key_bindings = true
config.keys = {
-- fix for ctrl+space not sending properly. windows terminal has an identical issue
{
key = ' ',
mods = 'CTRL',
action = act.SendKey {
key = ' ',
mods = 'CTRL',
},
},
-- ctrl + v doesnt seem to work ..
-- {
-- key = 'V',
-- mods = 'CTRL',
-- action = act.PasteFrom 'Clipboard'
-- },
-- {
-- key = 'V',
-- mods = 'CTRL',
-- action = act.PasteFrom 'PrimarySelection'
-- },
{
key = '-',
mods = 'CTRL',
action = wezterm.action.DecreaseFontSize
},
{
key = '=',
mods = 'CTRL',
action = wezterm.action.IncreaseFontSize
},
{
key = '0',
mods = 'CTRL',
action = wezterm.action.ResetFontAndWindowSize,
},
-- copy
{
key = 'C',
mods = 'CTRL',
action = wezterm.action.CopyTo 'ClipboardAndPrimarySelection',
},
}
config.mouse_bindings = {
-- paste
{
event = { Down = { streak = 1, button = "Right" } },
mods = "NONE",
action = act({ PasteFrom = "Clipboard" }),
},
}
return config