-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwezterm.lua
More file actions
36 lines (32 loc) · 921 Bytes
/
wezterm.lua
File metadata and controls
36 lines (32 loc) · 921 Bytes
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
local wezterm = require("wezterm")
local config = require("config")
require("events")
-- Apply color scheme based on the WEZTERM_THEME environment variable
local themes = {
nord = "Nord (Gogh)",
onedark = "One Dark (Gogh)",
}
local selected_theme = os.getenv("WEZTERM_THEME") or "nord" -- Simplified theme selection
config.color_scheme = themes[selected_theme]
-- Background image and transparency
config.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
config.window_background_opacity = 0.85
config.macos_window_background_blur = 20
config.background = {
{
source = {
File = "/Users/" .. os.getenv("USER") .. "/Pictures/ravens.jpg",
},
opacity = 0.5, -- controls image transparency
hsb = {
brightness = 0.25,
},
},
{
source = { Color = "#000000" },
width = "100%",
height = "100%",
opacity = 0.15, -- dim overlay to make text readable
},
}
return config