-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwezterm.lua
48 lines (42 loc) · 1.92 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
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
local act = wezterm.action
-- config.color_scheme = 'iTerm2 Pastel Dark Background'
config.color_scheme = "Earthsong"
config.font = wezterm.font('Monaco')
config.font_size = 14.5
config.default_prog = { '/opt/homebrew/bin/fish' }
config.tab_bar_at_bottom = true
config.window_frame = {
font = wezterm.font("Monaco"),
font_size = 14.5,
}
config.command_palette_font_size = 14.5
config.window_close_confirmation = "NeverPrompt"
wezterm.on('update-right-status', function(window, pane)
window:set_right_status(window:active_workspace())
end)
-- config.freetype_load_flags = 'NO_HINTING'
-- config.freetype_load_target = 'Light'
-- config.freetype_render_target = 'HorizontalLcd'
-- config.front_end = 'WebGpu'
-- config.bold_brightens_ansi_colors = false
-- config.font_rules = {
-- {
-- intensity = 'Bold',
-- font = wezterm.font('Monaco', { weight = 'DemiBold', stretch = 'Normal' })
-- }
-- }
config.keys = {
{ mods = 'CMD', key = 'd', action = act.SendKey { mods = 'CTRL', key = 'd' } },
{ mods = 'CMD', key = 'c', action = act.SendKey { mods = 'CTRL', key = 'c' } },
{ mods = 'CMD|ALT', key = 'LeftArrow', action = act.ActivateTabRelative(-1) },
{ mods = 'CMD|ALT', key = 'RightArrow', action = act.ActivateTabRelative(1) },
{ mods = 'CMD', key = 's', action = act.SendKey { mods = 'CTRL', key = 's' } },
{ mods = 'CMD', key = 'q', action = act.SendKey { mods = 'CTRL', key = 'q' } },
{ mods = "SHIFT|SUPER", key = "p", action = act.ActivateCommandPalette },
{ mods = 'ALT', key = '9', action = act.ShowLauncherArgs { flags = 'FUZZY|WORKSPACES' } },
{ mods = 'CMD', key = '`', action = act.SwitchWorkspaceRelative(1) },
{ mods = 'CMD|SHIFT', key = '`', action = act.SwitchWorkspaceRelative(-1) },
}
return config