Files
zenbones-theme/lua/zenbones/template/alacritty.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
999 B
Lua
Raw Normal View History

2021-09-21 20:55:53 +08:00
local template = [[# This file is auto-generated from lua/zenbones/template/alacritty.lua
2021-09-18 14:32:29 +08:00
# ${name} alacritty colors
2021-09-05 06:28:20 +08:00
colors:
# Default colors
primary:
background: '${bg}'
foreground: '${fg}'
# Normal colors
normal:
black: '${color0}'
red: '${color1}'
green: '${color2}'
yellow: '${color3}'
blue: '${color4}'
magenta: '${color5}'
cyan: '${color6}'
white: '${color7}'
# Bright colors
bright:
black: '${color8}'
red: '${color9}'
green: '${color10}'
yellow: '${color11}'
blue: '${color12}'
magenta: '${color13}'
cyan: '${color14}'
white: '${color15}'
]]
2021-10-10 13:43:40 +08:00
return function(name, specs, p)
local term = require("zenbones.term").colors_map(p)
2021-09-14 05:53:51 +08:00
local values = {
name = name,
2021-10-10 13:43:40 +08:00
bg = specs.Normal.bg.hex,
fg = specs.Normal.fg.hex,
2021-09-14 05:53:51 +08:00
}
2021-10-09 16:27:46 +08:00
for i, v in ipairs(term) do
2021-09-14 05:53:51 +08:00
values["color" .. (i - 1)] = v.hex
end
2021-09-05 06:28:20 +08:00
2021-09-14 05:53:51 +08:00
return { string.format("extras/alacritty/%s.yml", name), template, values }
end