Skip to content

Commit 0804670

Browse files
authored
feat(extras): add process-compose extra (#606)
## Description i made this for my personal dotfiles for [process-compose](https://github.com/F1bonacc1/process-compose). it's not perfect, but it is pretty nice :) ## Related Issue(s) n/a ## Screenshots <img width="1728" alt="image" src="https://github.com/user-attachments/assets/b38d3f63-f833-48fd-89b7-316a63d99aac">
1 parent a2979ce commit 0804670

File tree

2 files changed

+56
-4
lines changed

2 files changed

+56
-4
lines changed

lua/tokyonight/extra/init.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local M = {}
66
--- @type table<string, {ext:string, url:string, label:string, subdir?: string, sep?:string}>
77
-- stylua: ignore
88
M.extras = {
9-
aerc = { ext = "ini", url = "https://git.sr.ht/~rjarry/aerc/", label = "Aerc"},
9+
aerc = { ext = "ini", url = "https://git.sr.ht/~rjarry/aerc/", label = "Aerc" },
1010
alacritty = { ext = "toml", url = "https://github.com/alacritty/alacritty", label = "Alacritty" },
1111
delta = { ext = "gitconfig", url = "https://github.com/dandavison/delta", label = "Delta" },
1212
dunst = { ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst" },
@@ -15,16 +15,17 @@ M.extras = {
1515
foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
1616
fzf = { ext = "sh", url = "https://github.com/junegunn/fzf", label = "Fzf" },
1717
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
18-
gnome_terminal = { ext = "dconf", url = "https://gitlab.gnome.org/GNOME/gnome-terminal", label = "GNOME Terminal"},
18+
gnome_terminal = { ext = "dconf", url = "https://gitlab.gnome.org/GNOME/gnome-terminal", label = "GNOME Terminal" },
1919
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix" },
2020
iterm = { ext = "itermcolors", url = "https://iterm2.com/", label = "iTerm" },
2121
kitty = { ext = "conf", url = "https://sw.kovidgoyal.net/kitty/conf.html", label = "Kitty" },
2222
lazygit = { ext = "yml", url = "https://github.com/jesseduffield/lazygit", label = "Lazygit" },
2323
lua = { ext = "lua", url = "https://www.lua.org", label = "Lua Table for testing" },
2424
prism = { ext = "js", url = "https://prismjs.com", label = "Prism" },
25-
slack = {ext = "txt", url = "https://slack.com", label = "Slack"},
25+
process_compose = { ext = "yaml", url = "https://f1bonacc1.github.io/process-compose/", label = "process-compose" },
26+
slack = { ext = "txt", url = "https://slack.com", label = "Slack" },
2627
sublime = { ext = "tmTheme", url = "https://www.sublimetext.com/docs/themes", label = "Sublime Text" },
27-
spotify_player = {ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player"},
28+
spotify_player = { ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player" },
2829
terminator = { ext = "conf", url = "https://gnome-terminator.readthedocs.io/en/latest/config.html", label = "Terminator" },
2930
tilix = { ext = "json", url = "https://github.com/gnunn1/tilix", label = "Tilix" },
3031
tmux = { ext = "tmux", url = "https://github.com/tmux/tmux/wiki", label = "Tmux" },
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
local util = require("tokyonight.util")
2+
local M = {}
3+
4+
--- @param colors ColorScheme
5+
function M.generate(colors)
6+
local process_compose = util.template(
7+
[=[
8+
style:
9+
name: ${_name}
10+
body:
11+
fgColor: '${fg}'
12+
bgColor: '${bg_dark}'
13+
secondaryTextColor: '${fg_dark}'
14+
tertiaryTextColor: '${fg_visual}'
15+
borderColor: '${fg_gutter}'
16+
stat_table:
17+
keyFgColor: '${yellow}'
18+
valueFgColor: '${fg}'
19+
logoColor: '${yellow}'
20+
proc_table:
21+
fgColor: '${blue}'
22+
fgWarning: '${yellow}'
23+
fgPending: '${dark3}'
24+
fgCompleted: '${green}'
25+
fgError: '${red1}'
26+
headerFgColor: '${fg}'
27+
help:
28+
fgColor: '${blue1}'
29+
keyColor: '${fg}'
30+
hlColor: '${green}'
31+
categoryFgColor: '${blue5}'
32+
dialog:
33+
fgColor: '${blue1}'
34+
bgColor: '${black}'
35+
contrastBgColor: '${bg}'
36+
attentionBgColor: '${red1}'
37+
buttonFgColor: '${black}'
38+
buttonBgColor: '${bg_highlight}'
39+
buttonFocusFgColor: '${black}'
40+
buttonFocusBgColor: '${blue}'
41+
labelFgColor: '${yellow}'
42+
fieldFgColor: '${black}'
43+
fieldBgColor: '${blue7}'
44+
]=],
45+
colors
46+
)
47+
48+
return process_compose
49+
end
50+
51+
return M

0 commit comments

Comments
 (0)