-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
67 lines (65 loc) · 1.48 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
local wezterm = require 'wezterm'
local action = wezterm.action
local colors = require('lua/rose-pine').colors()
local window_frame = require('lua/rose-pine').window_frame()
return {
audible_bell = "Disabled",
colors = colors,
font = wezterm.font 'Fira Code',
font_size = 15.0,
font_rules = {
{
italic = true,
intensity = 'Normal',
font = wezterm.font {
family = 'Fira Code',
style = 'Normal',
},
},
},
hide_tab_bar_if_only_one_tab = true,
native_macos_fullscreen_mode = true,
window_frame = window_frame,
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
keys = {
{
-- Turn off the default CMD-t action.
key = 't',
mods = 'CMD',
action = wezterm.action.DisableDefaultAssignment,
},
{
key = 'LeftArrow',
mods = 'OPT',
action = action.SendKey { key = 'b', mods = 'ALT' },
},
{
key = 'RightArrow',
mods = 'OPT',
action = action.SendKey { key = 'f', mods = 'ALT' },
},
{
key = 'LeftArrow',
mods = 'CMD',
action = action.Multiple {
wezterm.action.SendKey { key = 'a', mods = 'CTRL' },
wezterm.action.SendKey { key = 'a', mods = 'CTRL' },
},
},
{
key = 'RightArrow',
mods = 'CMD',
action = action.SendKey { key = 'e', mods = 'CTRL' },
},
{
key = "Backspace",
mods = "CMD",
action = action.SendKey { mods = "CTRL", key = "u" },
},
},
}