-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwezterm.lua
102 lines (96 loc) · 1.95 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- 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
function get_appearance()
if wezterm.gui then
return wezterm.gui.get_appearance()
end
return "Dark"
end
function scheme_for_appearance(appearance)
if appearance:find("Dark") then
return "github_dark"
-- return "catppuccin-mocha"
else
return "github_light"
-- return "catppuccin-latte"
end
end
config.enable_tab_bar = false
config.font = wezterm.font("SFMono Nerd Font", { weight = "Regular", stretch = "Normal", style = "Normal" }) -- (AKA: SF Mono) /Users/sethwright/Library/Fonts/SFMono Regular Nerd Font Complete.otf, CoreText
config.font_size = 13.0
config.line_height = 1.1
config.color_scheme_dirs = { "/Users/sethwright/dotfiles/wezterm-themes/" }
config.color_scheme = scheme_for_appearance(get_appearance())
config.window_close_confirmation = "NeverPrompt"
config.window_decorations = "RESIZE"
config.keys = {
{
key = "]",
mods = "SUPER",
action = wezterm.action({
SendString = "¬",
}),
},
{
key = "[",
mods = "SUPER",
action = wezterm.action({
SendString = "˙",
}),
},
{
key = "z",
mods = "SUPER",
action = wezterm.action({
SendString = "⌟",
}),
},
{
key = "n",
mods = "SUPER",
action = wezterm.action({
SendString = "ç",
}),
},
{
key = "t",
mods = "SUPER",
action = wezterm.action({
SendString = "ç",
}),
},
{
key = "w",
mods = "SUPER",
action = wezterm.action({
SendString = "≈",
}),
},
{
key = "r",
mods = "SUPER",
action = wezterm.action({
SendString = "÷",
}),
},
{
key = "\\",
mods = "CMD",
action = wezterm.action({
SendString = "«",
}),
},
{
key = "F",
mods = "CMD|SHIFT",
action = wezterm.action.ToggleFullScreen,
},
}
return config