This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wezterm.lua
105 lines (90 loc) · 2.16 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
103
104
105
local wt = require('wezterm')
local act = wt.action
local user_os = wt.target_triple
local shell = {}
local win_shell = 'C:/Program Files/Git/usr/bin/zsh.exe'
local linux_shell = '/usr/bin/zsh'
if user_os == 'x86_64-pc-windows-msvc' then
shell = { win_shell }
elseif user_os == 'x86_64-unkown-linux-gnu' then
shell = { linux_shell }
end
table.insert(shell, '-l')
return {
-- COLORS
color_scheme = 'carbonfox',
colors = {
cursor_bg = '#34c6ff',
cursor_border = '#34c6ff',
background = '#000000',
foreground = '#ffffff',
ansi = {
'#000000', -- black
'#fe0100', -- red
'#00a600', -- green
'#feff00', -- yellow
'#0066ff', -- blue
'#cc00ff', -- magenta
'#00d5d5', -- cyan
'#ffffff', -- white
},
brights = {
'#808080', -- bright-black
'#fe0100', -- bright-red
'#29cc00', -- bright-green
'#feff00', -- bright-yellow
'#0066ff', -- bright-blue
'#cc00ff', -- bright-magenta
'#00d5d5', -- bright-cyan
'#ffffff', -- bright-white
},
split = '#34c6ff',
},
term = 'xterm-256color',
-- CURSOR
cursor_blink_ease_in = 'Constant',
cursor_blink_ease_out = 'Constant',
cursor_blink_rate = 500,
default_cursor_style = 'BlinkingBlock',
-- FONT
font = wt.font({
family = 'FiraCode NF',
harfbuzz_features = { 'liga=1' },
}),
font_size = 12.5,
-- GUI
window_close_confirmation = 'NeverPrompt',
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
-- KEY BINDINGS
keys = {
-- Split horizontally
{
key = 'v',
mods = 'CTRL|SHIFT',
action = act.SplitHorizontal({ domain = 'CurrentPaneDomain' }),
},
-- Split vertically
{
key = 's',
mods = 'CTRL|SHIFT',
action = act.SplitVertical({ domain = 'CurrentPaneDomain' }),
},
-- Scroll up 1 line
{ key = 'UpArrow', mods = 'SHIFT', action = act.ScrollByLine(-1) },
-- Scroll down 1 line
{ key = 'DownArrow', mods = 'SHIFT', action = act.ScrollByLine(1) },
-- Scrool to bottom
{ key = 'End', mods = 'SHIFT', action = act.ScrollToBottom },
-- Scrool to top
{ key = 'Home', mods = 'SHIFT', action = act.ScrollToTop },
-- Toggle fullscreen
{ key = 'F11', action = act.ToggleFullScreen },
},
-- SHELL
default_prog = shell,
}