-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy path.wezterm.lua
156 lines (134 loc) · 4.97 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
-- Import the wezterm API
local wezterm = require("wezterm")
-- Initialize an empty configuration table
local config = {}
-- Background image options
-- config.background = {
-- {
-- source = {
-- File = "C:/Users/alanb/Pictures/synth-kanagawa-blur-20.jpg", -- Path to the background image file
-- },
-- width = "100%", -- Set the background image width to 100% of the terminal window
-- height = "100%", -- Set the background image height to gg100% of the terminal window
-- opacity = 1, -- Set the opacity of the background image (0.0 - 1.0)
-- hsb = {
-- brightness = 0.04, -- Set the brightness of the background image (low value to darken the image)
-- saturation = 1, -- Set the saturation of the background image
-- },
-- },
-- }
-- Sakura Theme
-- config.colors = {
-- foreground = "#786577", -- na: texto
-- background = "#1c1a1c", -- bl: fondo
-- cursor_bg = "#9e97d0", -- ca: púrpura
-- cursor_fg = "#c5a3a9", -- na: texto
-- cursor_border = "#9e97d0", -- ca: púrpura
-- selection_fg = "#c5a3a9", -- na: texto
-- selection_bg = "#3f3b3e", -- gr: gris
-- scrollbar_thumb = "#2e2d2f", -- gl: gris claro
-- split = "#2e2d2f", -- gl: gris claro
-- ansi = {
-- "#1c1a1c", -- Black: bl: negro
-- "#c58ea7", -- Red: ia: rojo
-- "#878fb9", -- Green: va: verde (azul)
-- "#9e97d0", -- Yellow: ca: amarillo (púrpura)
-- "#665E7A", -- Blue: vb: azul oscuro
-- "#9e97d0", -- Magenta: ca: magenta
-- "#c58ea7", -- Cyan: ia: cyan (rosa)
-- "#c5a3a9", -- White: na: blanco
-- },
-- brights = {
-- "#3f3b3e", -- Bright Black: gr: gris oscuro
-- "#c58ea7", -- Bright Red: ia: rojo
-- "#878fb9", -- Bright Green: va: verde
-- "#9e97d0", -- Bright Yellow: ca: amarillo
-- "#665E7A", -- Bright Blue: vb: azul
-- "#9e97d0", -- Bright Magenta: ca: magenta
-- "#c58ea7", -- Bright Cyan: ia: cyan
-- "#c5a3a9", -- Bright White: na: blanco
-- },
-- indexed = {
-- [16] = "#9e97d0", -- ca: púrpura
-- [17] = "#c58ea7", -- ia: rosa
-- },
-- }
-- OldWorld Theme
config.colors = {
-- --- Base colors ---
foreground = "#C9C7CD", -- na: main text (light gray)
background = "#000000", -- bl: dark background (almost black)
-- --- Cursor colors ---
cursor_bg = "#92A2D5", -- ca: blue lavender (cursor background)
cursor_fg = "#C9C7CD", -- na: main text (cursor foreground)
cursor_border = "#92A2D5", -- ca: blue lavender (cursor border)
-- --- Selection colors ---
selection_fg = "#C9C7CD", -- na: main text (selection foreground)
selection_bg = "#3B4252", -- gr: dark gray (selection background)
-- --- UI colors ---
scrollbar_thumb = "#4C566A", -- nb: medium gray (scrollbar thumb)
split = "#4C566A", -- nb: medium gray (split line)
-- --- ANSI colors ---
ansi = {
"#000000", -- Black: bl: dark background (almost black)
"#EA83A5", -- Red: ia: intense pink (errors)
"#90B99F", -- Green: va: soft green (success)
"#E6B99D", -- Yellow: ca: beige (warnings)
"#85B5BA", -- Blue: va: light blue-green (information)
"#92A2D5", -- Magenta: ca: blue lavender (highlight)
"#85B5BA", -- Cyan: va: light blue-green (links)
"#C9C7CD", -- White: na: main text (light gray)
},
-- --- Bright ANSI colors ---
brights = {
"#4C566A", -- Bright Black: nb: medium gray (bright black)
"#EA83A5", -- Bright Red: ia: intense pink (bright red)
"#90B99F", -- Bright Green: va: soft green (bright green)
"#E6B99D", -- Bright Yellow: ca: beige (bright yellow)
"#85B5BA", -- Bright Blue: va: light blue-green (bright blue)
"#92A2D5", -- Bright Magenta: ca: blue lavender (bright magenta)
"#85B5BA", -- Bright Cyan: va: light blue-green (bright cyan)
"#C9C7CD", -- Bright White: na: main text (bright white)
},
-- --- Indexed colors ---
indexed = {
[16] = "#F5A191", -- ca: light peach (orange)
[17] = "#E29ECA", -- ia: soft pink (pink)
},
}
-- This is where you actually apply your config choices
config.window_padding = {
top = 0,
right = 0,
left = 0,
}
-- Set the terminal font
config.font = wezterm.font("IosevkaTerm NF")
-- Hide the tab bar if only one tab is open
config.hide_tab_bar_if_only_one_tab = true
config.max_fps = 240 -- hack for smoothness
config.enable_kitty_graphics = true
-- Background with Transparency
config.window_background_opacity = 0.85 -- Adjust this value as needed
config.macos_window_background_blur = 20 -- Adjust this value as needed
config.win32_system_backdrop = "Acrylic" -- Only Works in Windows
-- Font Size
config.font_size = 16.0
-- Smooth hack
config.max_fps = 240
-- Enable Kitty Graphics
config.enable_kitty_graphics = true
-- Disable Scroll Bar
config.enable_scroll_bar = false
-- activate ONLY if windows --
-- config.default_domain = 'WSL:Ubuntu'
-- config.front_end = "OpenGL"
-- local gpus = wezterm.gui.enumerate_gpus()
-- if #gpus > 0 then
-- config.webgpu_preferred_adapter = gpus[1] -- only set if there's at least one GPU
-- else
-- -- fallback to default behavior or log a message
-- wezterm.log_info("No GPUs found, using default settings")
-- end
-- and finally, return the configuration to wezterm
return config