-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.wezterm.lua
executable file
·68 lines (56 loc) · 2.13 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
-- Pull in the wezterm API
local wezterm = require 'wezterm'
local act = wezterm.action
--local mux = wezterm.mux
--wezterm.on("gui-startup", function(cmd)
--local tab, pane, window = mux.spawn_window(cmd or {})
--window:gui_window():maximize()
--end)
-- 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 = 'Dracula+'
config.font = wezterm.font {
family = 'Monaspace Neon',
weight = 'Medium',
--stretch = 'ExtraCondensed',
harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' },
}
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
config.default_domain = 'WSL:Ubuntu-20.04'
config.font_size = 10.5
elseif wezterm.target_triple == 'x86_64-unknown-linux-gnu' then
config.font_size = 10.5
else
config.font_size = 14.0
end
-- Behavioral config
config.enable_tab_bar = false
-- Allow sending CMD-t/{/} through to tmux
local sendNextTab = act.SendKey { key = '}', mods = 'META'}
local sendPrevTab = act.SendKey { key = '{', mods = 'META'}
config.keys = {
{ key = 't', mods = 'CMD', action = act.SendKey { key = 't', mods = 'META' }, },
{ key = ']', mods = 'SUPER', action = sendNextTab },
{ key = ']', mods = 'SUPER|SHIFT', action = sendNextTab },
{ key = '}', mods = 'SUPER', action = sendNextTab }, -- Bug in WezTerm
{ key = '}', mods = 'SUPER|SHIFT', action = sendNextTab }, -- Bug in WezTerm
{ key = '[', mods = 'SUPER', action = sendPrevTab },
{ key = '[', mods = 'SUPER|SHIFT', action = sendPrevTab },
{ key = '{', mods = 'SUPER', action = sendPrevTab }, -- Bug in WezTerm
{ key = '{', mods = 'SUPER|SHIFT', action = sendPrevTab }, -- Bug in WezTerm
}
config.window_close_confirmation = 'NeverPrompt'
-- Debian Sid issues, heh
config.enable_wayland = true
--config.window_decorations = "RESIZE"
config.window_decorations = "TITLE | RESIZE"
config.dpi = 72
-- and finally, return the configuration to wezterm
return config