-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwezterm.lua
More file actions
79 lines (65 loc) · 1.54 KB
/
wezterm.lua
File metadata and controls
79 lines (65 loc) · 1.54 KB
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
local wezterm = require("wezterm")
local colors = {
foreground = "#fbf1c7",
background = "#1d2021",
cursor_bg = "#928374",
cursor_fg = "black",
cursor_border = "#928374",
selection_fg = "#928374",
selection_bg = "#ebdbb2",
scrollbar_thumb = "#222222",
-- The color of the split lines between panes
split = "#444444",
ansi = {
"#1d2021", -- black, color 0
"#cc241d", -- red, color 1
"#98971a", -- green, color 2
"#d79921",
"#458588",
"#b16286",
"#689d6a",
"#a89984",
},
brights = {
"#7c6f64", -- black, color 0
"#fb4934", -- red, color 1
"#b8bb26", -- green, color 2
"#fabd2f",
"#83a598",
"#d3869b",
"#8ec07c",
"#fbf1c7",
},
}
local is_macos = wezterm.target_triple:match("darwin") ~= nil
local function wayland_enabled()
local wayland = os.getenv("XDG_SESSION_TYPE")
return wayland == "wayland"
end
local font_size = 10.0
local line_height = 1.25
if wayland_enabled() or is_macos then
font_size = 12.0
end
return {
-- See: https://wezfurlong.org/wezterm/config/lua/config/term.html
-- term = "wezterm",
enable_tab_bar = false,
font = wezterm.font("Berkeley Mono Nerd Font"),
font_size = font_size,
line_height = line_height,
-- Use this, but then overwrite it basically completely further down
color_scheme = "GruvboxDarkHard",
colors = colors,
keys = {
{
key = "f",
mods = "SHIFT|SUPER",
action = wezterm.action.ToggleFullScreen,
},
},
-- Window size configuration
-- initial_cols = 120,
-- initial_rows = 30,
-- window_decorations = "NONE", -- This removes title bar and borders
}