feat: add color config for foot (#147)
* feat: add foot terminal template * feat: add foot terminal template * chore: generate foot config Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
a1d1c0fb19
commit
eaf6a7607e
@ -169,7 +169,7 @@ set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{25
|
||||
|
||||
## 🍭 Extras
|
||||
|
||||
Extra color configs for **Kitty**, **Alacritty**, **Fish**, **WezTerm** and **iTerm** can be found in [extras](extras/). To use them, refer to their respective documentation.
|
||||
Extra color configs for **Kitty**, **Alacritty**, **Fish**, **WezTerm**, **iTerm** and **foot** can be found in [extras](extras/). To use them, refer to their respective documentation.
|
||||
|
||||
![image](https://user-images.githubusercontent.com/292349/115395546-d8d6f880-a198-11eb-98fb-a1194787701d.png)
|
||||
|
||||
|
30
extras/foot_tokyonight_day.ini
Normal file
30
extras/foot_tokyonight_day.ini
Normal file
@ -0,0 +1,30 @@
|
||||
[cursor]
|
||||
color=3760bf 99a7df
|
||||
|
||||
[colors]
|
||||
foreground=3760bf
|
||||
background=e1e2e7
|
||||
selection-foreground=3760bf
|
||||
selection-background=99a7df
|
||||
urls=387068
|
||||
|
||||
regular0=e9e9ed
|
||||
regular1=f52a65
|
||||
regular2=587539
|
||||
regular3=8c6c3e
|
||||
regular4=2e7de9
|
||||
regular5=9854f1
|
||||
regular6=007197
|
||||
regular7=6172b0
|
||||
|
||||
bright0=a1a6c5
|
||||
bright1=f52a65
|
||||
bright2=587539
|
||||
bright3=8c6c3e
|
||||
bright4=2e7de9
|
||||
bright5=9854f1
|
||||
bright6=007197
|
||||
bright7=3760bf
|
||||
|
||||
16=b15c00
|
||||
17=c64343
|
30
extras/foot_tokyonight_night.ini
Normal file
30
extras/foot_tokyonight_night.ini
Normal file
@ -0,0 +1,30 @@
|
||||
[cursor]
|
||||
color=c0caf5 33467C
|
||||
|
||||
[colors]
|
||||
foreground=c0caf5
|
||||
background=1a1b26
|
||||
selection-foreground=c0caf5
|
||||
selection-background=33467C
|
||||
urls=73daca
|
||||
|
||||
regular0=15161E
|
||||
regular1=f7768e
|
||||
regular2=9ece6a
|
||||
regular3=e0af68
|
||||
regular4=7aa2f7
|
||||
regular5=bb9af7
|
||||
regular6=7dcfff
|
||||
regular7=a9b1d6
|
||||
|
||||
bright0=414868
|
||||
bright1=f7768e
|
||||
bright2=9ece6a
|
||||
bright3=e0af68
|
||||
bright4=7aa2f7
|
||||
bright5=bb9af7
|
||||
bright6=7dcfff
|
||||
bright7=c0caf5
|
||||
|
||||
16=ff9e64
|
||||
17=db4b4b
|
30
extras/foot_tokyonight_storm.ini
Normal file
30
extras/foot_tokyonight_storm.ini
Normal file
@ -0,0 +1,30 @@
|
||||
[cursor]
|
||||
color=c0caf5 364A82
|
||||
|
||||
[colors]
|
||||
foreground=c0caf5
|
||||
background=24283b
|
||||
selection-foreground=c0caf5
|
||||
selection-background=364A82
|
||||
urls=73daca
|
||||
|
||||
regular0=1D202F
|
||||
regular1=f7768e
|
||||
regular2=9ece6a
|
||||
regular3=e0af68
|
||||
regular4=7aa2f7
|
||||
regular5=bb9af7
|
||||
regular6=7dcfff
|
||||
regular7=a9b1d6
|
||||
|
||||
bright0=414868
|
||||
bright1=f7768e
|
||||
bright2=9ece6a
|
||||
bright3=e0af68
|
||||
bright4=7aa2f7
|
||||
bright5=bb9af7
|
||||
bright6=7dcfff
|
||||
bright7=c0caf5
|
||||
|
||||
16=ff9e64
|
||||
17=db4b4b
|
52
lua/tokyonight/extra/foot.lua
Normal file
52
lua/tokyonight/extra/foot.lua
Normal file
@ -0,0 +1,52 @@
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
local M = {}
|
||||
|
||||
--- @param colors ColorScheme
|
||||
function M.generate(colors)
|
||||
local footColors = {}
|
||||
for k, v in pairs(colors) do
|
||||
if type(v) == "string" then
|
||||
footColors[k] = v:gsub("^#", "")
|
||||
end
|
||||
end
|
||||
|
||||
local foot = util.template(
|
||||
[[
|
||||
[cursor]
|
||||
color=${fg} ${bg_visual}
|
||||
|
||||
[colors]
|
||||
foreground=${fg}
|
||||
background=${bg}
|
||||
selection-foreground=${fg}
|
||||
selection-background=${bg_visual}
|
||||
urls=${green1}
|
||||
|
||||
regular0=${black}
|
||||
regular1=${red}
|
||||
regular2=${green}
|
||||
regular3=${yellow}
|
||||
regular4=${blue}
|
||||
regular5=${magenta}
|
||||
regular6=${cyan}
|
||||
regular7=${fg_dark}
|
||||
|
||||
bright0=${terminal_black}
|
||||
bright1=${red}
|
||||
bright2=${green}
|
||||
bright3=${yellow}
|
||||
bright4=${blue}
|
||||
bright5=${magenta}
|
||||
bright6=${cyan}
|
||||
bright7=${fg}
|
||||
|
||||
16=${orange}
|
||||
17=${red1}]],
|
||||
footColors
|
||||
)
|
||||
|
||||
return foot
|
||||
end
|
||||
|
||||
return M
|
@ -18,6 +18,7 @@ local extras = {
|
||||
tmux = "tmux",
|
||||
xresources = "Xresources",
|
||||
xfceterm = "theme",
|
||||
foot = "ini",
|
||||
tilix = "json",
|
||||
}
|
||||
-- map of style to style name
|
||||
|
Loading…
Reference in New Issue
Block a user