-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
67 lines (56 loc) · 1.69 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
-- 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
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = "ayu"
-- config.color_scheme = "nord"
-- config.color_scheme = "Solarized Dark - Patched"
-- config.color_scheme = "Dracula (Official)"
-- config.color_scheme = "Palenight (Gogh)"
-- config.font = wezterm.font("JetBrainsMono Nerd Font Mono")
config.font = wezterm.font("Monaspace Krypton")
config.font_size = 11
-- Tabs:
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.window_background_opacity = 0.9
config.animation_fps = 1
-- prevent check for a new update.
config.check_for_updates = false
-- Custom keymaps:
config.keys = {
{
key = "i",
mods = "CTRL|ALT",
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
},
{
key = "o",
mods = "CTRL|ALT",
action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }),
},
{
key = "R",
mods = "CTRL|SHIFT",
action = wezterm.action.PromptInputLine({
description = "Enter new name for tab",
action = wezterm.action_callback(function(window, _, line)
-- line will be `nil` if they hit escape without entering anything
-- An empty string if they just hit enter
-- Or the actual line of text they wrote
if line then
window:active_tab():set_title(line)
end
end),
}),
},
}
-- and finally, return the configuration to wezterm
return config