fix k9s to work with new config workflow

This commit is contained in:
Noah Masur 2024-01-30 10:37:05 -07:00
parent fa03e51d37
commit e7f8a75df3

View File

@ -24,18 +24,29 @@
# Terminal Kubernetes UI # Terminal Kubernetes UI
programs.k9s = { programs.k9s = {
enable = true; enable = true;
# settings = { k9s = { headless = true; }; }; settings = {
skin = { k9s = {
ui = {
enableMouse = true;
headless = true;
logoless = true;
crumbsless = false;
skin = "main";
};
};
};
skins = {
main = {
k9s = { k9s = {
body = { body = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
logoColor = config.theme.colors.base02; # *blue ? logoColor = config.theme.colors.base02; # *blue ?
}; };
# Search bar # Search bar
prompt = { prompt = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
suggestColor = config.theme.colors.base03; suggestColor = config.theme.colors.base03;
}; };
# Header left side # Header left side
@ -45,7 +56,7 @@
}; };
dialog = { dialog = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
buttonFgColor = config.theme.colors.base06; buttonFgColor = config.theme.colors.base06;
buttonBgColor = config.theme.colors.base0E; buttonBgColor = config.theme.colors.base0E;
buttonFocusFgColor = config.theme.colors.base07; buttonFocusFgColor = config.theme.colors.base07;
@ -79,7 +90,7 @@
}; };
title = { title = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
highlightColor = config.theme.colors.base09; # *orange highlightColor = config.theme.colors.base09; # *orange
counterColor = config.theme.colors.base0D; # *blue counterColor = config.theme.colors.base0D; # *blue
filterColor = config.theme.colors.base0E; # *magenta filterColor = config.theme.colors.base0E; # *magenta
@ -87,7 +98,7 @@
}; };
views = { views = {
charts = { charts = {
bgColor = config.theme.colors.base00; bgColor = "default";
defaultDialColors = defaultDialColors =
[ config.theme.colors.base0D config.theme.colors.base08 ]; [ config.theme.colors.base0D config.theme.colors.base08 ];
# - *blue # - *blue
@ -100,7 +111,7 @@
table = { table = {
# List of resources # List of resources
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
# Row selection # Row selection
cursorFgColor = config.theme.colors.base07; cursorFgColor = config.theme.colors.base07;
@ -109,13 +120,13 @@
# Header row # Header row
header = { header = {
fgColor = config.theme.colors.base0D; fgColor = config.theme.colors.base0D;
bgColor = config.theme.colors.base00; bgColor = "default";
sorterColor = config.theme.colors.base0A; # *selection sorterColor = config.theme.colors.base0A; # *selection
}; };
}; };
xray = { xray = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
cursorColor = config.theme.colors.base06; cursorColor = config.theme.colors.base06;
graphicColor = config.theme.colors.base0D; graphicColor = config.theme.colors.base0D;
showIcons = false; showIcons = false;
@ -127,10 +138,11 @@
}; };
logs = { logs = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
indicator = { indicator = {
fgColor = config.theme.colors.base06; fgColor = config.theme.colors.base06;
bgColor = config.theme.colors.base00; bgColor = "default";
};
}; };
}; };
}; };