add alacritty
This commit is contained in:
@@ -142,6 +142,7 @@ the complete options.
|
|||||||
|
|
||||||
- [iTerm2](extras/iterm/zenbones.itermcolors)
|
- [iTerm2](extras/iterm/zenbones.itermcolors)
|
||||||
- [Kitty](extras/kitty/zenbones.conf)
|
- [Kitty](extras/kitty/zenbones.conf)
|
||||||
|
- [Alacritty](extras/alacritty/zenbones.yml)
|
||||||
|
|
||||||
### Print terminal colors
|
### Print terminal colors
|
||||||
|
|
||||||
|
|||||||
26
extras/alacritty/zenbones.yml
Normal file
26
extras/alacritty/zenbones.yml
Normal 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'
|
||||||
@@ -17,7 +17,7 @@ local function write_template(path, template, values)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function build()
|
local function build()
|
||||||
local templates = { "vim", "kitty", "lualine" }
|
local templates = { "vim", "kitty", "alacritty", "lualine" }
|
||||||
for _, t in ipairs(templates) do
|
for _, t in ipairs(templates) do
|
||||||
write_template(unpack(require("zenbones.build." .. t)))
|
write_template(unpack(require("zenbones.build." .. t)))
|
||||||
end
|
end
|
||||||
|
|||||||
40
lua/zenbones/build/alacritty.lua
Normal file
40
lua/zenbones/build/alacritty.lua
Normal 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 }
|
||||||
Reference in New Issue
Block a user