mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 11:40:37 +00:00
style(wezterm.lua): reformat config settings for better readability and consistency
feat(wezterm.lua): add support for custom colorscheme by reading from a file or defaulting to 'Catppuccin Mocha' if file not found
This commit is contained in:
@@ -2,35 +2,45 @@ local wezterm = require("wezterm")
|
|||||||
|
|
||||||
local config = wezterm.config_builder()
|
local config = wezterm.config_builder()
|
||||||
|
|
||||||
config = {
|
config.automatically_reload_config = true
|
||||||
automatically_reload_config = true,
|
config.enable_tab_bar = false
|
||||||
enable_tab_bar = false,
|
config.scrollback_lines = 10000
|
||||||
window_close_confirmation = "NeverPrompt",
|
config.use_dead_keys = false
|
||||||
window_decorations = "RESIZE",
|
config.window_close_confirmation = "NeverPrompt"
|
||||||
default_cursor_style = "BlinkingBlock",
|
config.window_decorations = "RESIZE"
|
||||||
cursor_blink_rate = 0,
|
config.default_cursor_style = "BlinkingBlock"
|
||||||
color_scheme = "tokyonight",
|
config.cursor_blink_rate = 0
|
||||||
font = wezterm.font("FiraCode Nerd Font", { weight = 450, stretch = "Normal", style = "Normal" }),
|
config.font = wezterm.font("FiraCode Nerd Font", { weight = 450, stretch = "Normal", style = "Normal" })
|
||||||
font_size = 12.5,
|
config.font_size = 14
|
||||||
background = {
|
config.window_background_opacity = .9
|
||||||
{
|
-- background = {
|
||||||
source = {
|
-- {
|
||||||
Color = "#1a1b26",
|
-- source = {
|
||||||
},
|
-- Color = "#1a1b26",
|
||||||
width = "100%",
|
-- },
|
||||||
height = "100%",
|
-- width = "100%",
|
||||||
opacity = 0.95,
|
-- height = "100%",
|
||||||
|
-- opacity = 0.90,
|
||||||
}
|
--
|
||||||
},
|
-- }
|
||||||
window_padding = {
|
-- },
|
||||||
left = 3,
|
config.window_padding = {
|
||||||
right = 3,
|
left = 3,
|
||||||
top = 20,
|
right = 3,
|
||||||
bottom = 0,
|
top = 20,
|
||||||
},
|
bottom = 0,
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
Reference in New Issue
Block a user