forked from holman/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
wezterm.lua.symlink
64 lines (58 loc) · 1.93 KB
/
wezterm.lua.symlink
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
local wezterm = require 'wezterm'
local config = {}
-- config.term = "wezterm"
config.term = "xterm-256color"
config.enable_tab_bar = true
-- config.color_scheme = 'Batman'
-- https://wezfurlong.org/wezterm/config/fonts.html
-- Test: != {(`'"Illegal10O"'`)}
config.font = wezterm.font_with_fallback {
{family='Iosevka', weight='Regular', stretch='Expanded'},
{family='Fira Code'},
{family='Lotion', weight='Bold'},
'Source Code Pro',
'Monofur Nerd Font',
'D2Coding',
{family='Inconsolata', stretch='Normal'},
'Andale Mono',
}
-- Set window opacity
-- https://blog-v2.ansidev.xyz/posts/2023-05-18-wezterm-cheatsheet#set-window-opacity
config.window_background_opacity = 0.95
config.debug_key_events = false
-- https://www.reddit.com/r/tmux/comments/13rq7wn/wezterm_users_my_config_to_free_up_keybindings/
config.disable_default_key_bindings = false
-- WARN: devs are unable to support global show/hide toggle x-platform
-- https://github.com/kovidgoyal/kitty/issues/45
config.keys = {
-- Turn off the default CMD-m Hide action, allowing CMD-m to
-- be potentially recognized and handled by the tab
{
key = 'm',
mods = 'CMD',
action = wezterm.action.DisableDefaultAssignment,
},
-- Add shortcut to open config really quickly
-- https://blog-v2.ansidev.xyz/posts/2023-05-18-wezterm-cheatsheet#open-wezterm-config-file-quickly
{
key = ',',
mods = 'CMD',
action = wezterm.action.SpawnCommandInNewTab {
cwd = os.getenv('WEZTERM_CONFIG_DIR'),
set_environment_variables = {
TERM = 'screen-256color',
},
args = {
'vi',
os.getenv('WEZTERM_CONFIG_FILE'),
},
},
},
}
-- Maximized window on startup
-- https://blog-v2.ansidev.xyz/posts/2023-05-18-wezterm-cheatsheet#maximized-window-on-start-up
wezterm.on('gui-startup', function(cmd)
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
return config