-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
94 lines (86 loc) · 3.01 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
require("color_schemes")
require("events")
require("keymaps")
require("mousemaps")
local wezterm = require("wezterm")
local config = require("config")
local color_schemes = wezterm.get_builtin_color_schemes()
for k, v in pairs(config.color_schemes) do
color_schemes[k] = v
end
-- config.color_scheme = "Tokyo Night Storm"
-- config.color_scheme = "Tokyo Night Moon"
config.color_scheme = "Tokyo Night"
-- config.color_scheme = "Catppuccin Frappe"
-- config.color_scheme = "Catppuccin Macchiato"
-- config.color_scheme = "Catppuccin Mocha"
-- config.color_scheme = "Catppuccin Pink Mocha"
-- config.color_scheme = "GruvboxDarkHard"
config.font_size = 14
config.font = wezterm.font_with_fallback({
-- { family = "BigBlueTermPlus Nerd Font", weight = "Regular" },
-- { family = "Cartograph CF", weight = "Bold" },
{ family = "ComicShannsMono Nerd Font", weight = "Bold" },
-- { family = "FiraCode Nerd Font", weight = "Bold" },
-- { family = "ProggyClean Nerd Font", weight = "Regular" },
-- { family = "ShureTechMono Nerd Font", weight = "Regular" },
-- { family = "Terminess Nerd Font", weight = "Bold" },
-- { family = "UbuntuMono Nerd Font", weight = "Regular" },
})
config.adjust_window_size_when_changing_font_size = false
config.bold_brightens_ansi_colors = "BrightAndBold"
config.default_cursor_style = "BlinkingBlock"
config.enable_scroll_bar = false
config.enable_wayland = true
config.exit_behavior_messaging = "Verbose"
config.front_end = "OpenGL" -- ["OpenGL", "Software", "WebGpu"]
config.hide_mouse_cursor_when_typing = true
config.hide_tab_bar_if_only_one_tab = false
-- config.macos_window_background_blur = 0
config.max_fps = 144
config.mouse_wheel_scrolls_tabs = false
config.native_macos_fullscreen_mode = true
config.scrollback_lines = 100000
config.show_tab_index_in_tab_bar = true
config.tab_bar_at_bottom = false
config.term = "wezterm"
config.use_fancy_tab_bar = true
config.webgpu_power_preference = "HighPerformance"
config.webgpu_preferred_adapter = wezterm.gui.enumerate_gpus()[2]
config.window_background_opacity = 0.9
config.window_close_confirmation = "NeverPrompt"
config.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
config.window_padding = { left = 10, right = 10, top = 25, bottom = 10 }
local bgpath = "~/.dotfiles/catbg.png"
if wezterm.target_triple:match("windows") then
config.default_domain = "WSL:Arch"
config.default_cwd = "/home/catdad"
config.win32_system_backdrop = "Disable" -- ["Auto", "Acrylic", "Mica", "Tabbed" "Disable"]
bgpath = "\\\\wsl.localhost\\Arch\\home\\chev\\.dotfiles\\images\\catbg.png"
elseif wezterm.target_triple:match("darwin") then
bgpath = "/Users/alexford/.dotfiles/images/catbg.png"
end
config.background = {
{
source = {
File = bgpath,
},
opacity = 1,
attachment = "Fixed",
repeat_x = "NoRepeat",
repeat_y = "NoRepeat",
vertical_align = "Bottom",
horizontal_align = "Center",
height = "Cover",
width = "Cover",
},
{
source = {
Color = color_schemes[config.color_scheme].background,
},
opacity = 0.9,
width = "100%",
height = "100%",
},
}
return config