feat: add colorscheme generator and themes for xfce4 terminal (#81)
Co-authored-by: ian mcgaunn <ian@mcgaunn.com>
This commit is contained in:
@@ -17,6 +17,7 @@ local extras = {
|
||||
wezterm = "toml",
|
||||
tmux = "tmux",
|
||||
xresources = "Xresources",
|
||||
xfceterm = "theme",
|
||||
}
|
||||
local styles = { "storm", "night", "day" }
|
||||
|
||||
|
||||
24
lua/tokyonight/extra/xfceterm.lua
Normal file
24
lua/tokyonight/extra/xfceterm.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
local M = {}
|
||||
|
||||
-- @param colors ColorScheme
|
||||
function M.generate(colors)
|
||||
local xfceterm = util.template(
|
||||
[[
|
||||
[Scheme]
|
||||
Name=TokyoNight Colors
|
||||
ColorBackground=${bg}
|
||||
ColorForeground=${fg}
|
||||
|
||||
ColorSelectionBackground=${bg_visual}
|
||||
ColorSelection=${fg}
|
||||
|
||||
ColorPalette=${black};${red};${green};${yellow};${blue};${magenta};${cyan};${fg_dark};${terminal_black};${red};${green};${yellow};${blue};${magenta};${cyan};${fg}
|
||||
]],
|
||||
colors
|
||||
)
|
||||
return xfceterm
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user