modify build script for zenflesh
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local template = [[# Zenbones
|
||||
local template = [[# ${name}
|
||||
[colors]
|
||||
foreground = "${fg}"
|
||||
background = "${bg}"
|
||||
@@ -12,20 +12,25 @@ ansi = ["${color0}", "${color1}", "${color2}", "${color3}", "${color4}", "${colo
|
||||
brights = ["${color8}", "${color9}", "${color10}", "${color11}", "${color12}", "${color13}", "${color14}", "${color15}"]
|
||||
]]
|
||||
|
||||
local theme = require "zenbones"
|
||||
local terminal = require "zenbones.terminal"
|
||||
return function(name)
|
||||
local theme = require(name)
|
||||
local terminal = require(name .. ".terminal")
|
||||
|
||||
local values = {
|
||||
fg = theme.Normal.fg.hex,
|
||||
bg = theme.Normal.bg.hex,
|
||||
cursor_bg = theme.Cursor.bg.hex,
|
||||
cursor_border = theme.Cursor.fg.hex,
|
||||
cursor_fg = theme.Cursor.fg.hex,
|
||||
selection_bg = theme.Visual.bg.hex,
|
||||
selection_fg = theme.Normal.fg.hex,
|
||||
}
|
||||
for i, v in ipairs(terminal.colors) do
|
||||
values["color" .. (i - 1)] = v.hex
|
||||
local name = name:sub(1, 1):upper() .. name:sub(2)
|
||||
|
||||
local values = {
|
||||
name = name,
|
||||
fg = theme.Normal.fg.hex,
|
||||
bg = theme.Normal.bg.hex,
|
||||
cursor_bg = theme.Cursor.bg.hex,
|
||||
cursor_border = theme.Cursor.fg.hex,
|
||||
cursor_fg = theme.Cursor.fg.hex,
|
||||
selection_bg = theme.Visual.bg.hex,
|
||||
selection_fg = theme.Normal.fg.hex,
|
||||
}
|
||||
for i, v in ipairs(terminal.colors) do
|
||||
values["color" .. (i - 1)] = v.hex
|
||||
end
|
||||
|
||||
return { string.format("extras/wezterm/%s.toml", name), template, values }
|
||||
end
|
||||
|
||||
return { "extras/wezterm/Zenbones.toml", template, values }
|
||||
|
||||
Reference in New Issue
Block a user