add alacritty

This commit is contained in:
Michael Chris Lopez
2021-09-05 06:28:20 +08:00
parent 90d5f582a1
commit 5e71b0b35a
4 changed files with 68 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ the complete options.
- [iTerm2](extras/iterm/zenbones.itermcolors)
- [Kitty](extras/kitty/zenbones.conf)
- [Alacritty](extras/alacritty/zenbones.yml)
### Print terminal colors

View File

@@ -0,0 +1,26 @@
# Zenbones Alacritty Colors
colors:
# Default colors
primary:
background: '#F0EDEC'
foreground: '#2C363C'
# Normal colors
normal:
black: '#2C363C'
red: '#A8334C'
green: '#617437'
yellow: '#944927'
blue: '#286486'
magenta: '#88507D'
cyan: '#3B8992'
white: '#F0EDEC'
# Bright colors
bright:
black: '#44525B'
red: '#9C2842'
green: '#55672A'
yellow: '#87411E'
blue: '#1F5A7A'
magenta: '#864079'
cyan: '#2F7C85'
white: '#DCD2CE'

View File

@@ -17,7 +17,7 @@ local function write_template(path, template, values)
end
local function build()
local templates = { "vim", "kitty", "lualine" }
local templates = { "vim", "kitty", "alacritty", "lualine" }
for _, t in ipairs(templates) do
write_template(unpack(require("zenbones.build." .. t)))
end

View File

@@ -0,0 +1,40 @@
local template = [[# Zenbones Alacritty Colors
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}'
]]
local theme = require "zenbones"
local terminal = require "zenbones.terminal"
local values = {
bg = theme.Normal.bg.hex,
fg = theme.Normal.fg.hex,
}
for i, v in ipairs(terminal.colors) do
values["color" .. (i - 1)] = v.hex
end
return { "extras/alacritty/zenbones.yml", template, values }