style(wezterm.lua): update window background opacity to 1 for full opacity

style(wezterm.lua): adjust background opacity to .95 for better visual appearance
refactor(wezterm.lua): extract colorscheme loading logic into a separate function for better readability and maintainability
This commit is contained in:
David Ibia
2024-10-01 15:06:43 +01:00
parent 814bb7cb34
commit 36c40f8e39

View File

@@ -12,7 +12,7 @@ config.default_cursor_style = "BlinkingBlock"
config.cursor_blink_rate = 0
config.font = wezterm.font("FiraCode Nerd Font", { weight = 450, stretch = "Normal", style = "Normal" })
config.font_size = 14
config.window_background_opacity = .9
config.window_background_opacity = 1
config.background = {
{
source = {
@@ -20,7 +20,7 @@ config.background = {
},
width = "100%",
height = "100%",
opacity = 0.90,
opacity = .95,
}
}
@@ -33,14 +33,18 @@ config.window_padding = {
-- Colorscheme
local file = io.open(wezterm.config_dir .. "/colorscheme", "r")
if file then
config.color_scheme = file:read("*a")
file:close()
else
config.color_scheme = 'Catppuccin Mocha'
local function load_neovim_colorscheme()
-- Colorscheme
local file = io.open(wezterm.config_dir .. "/colorscheme", "r")
if file then
config.color_scheme = file:read("*a")
file:close()
else
config.color_scheme = 'Catppuccin Mocha'
end
end
load_neovim_colorscheme()
return config