23 lines
694 B
Nix
23 lines
694 B
Nix
{
|
|
config,
|
|
accentColour ? "base07",
|
|
...
|
|
}: {
|
|
services.avizo = {
|
|
enable = true;
|
|
settings.default = with config.scheme; let
|
|
accent = {
|
|
r = config.scheme."${accentColour}-rgb-r";
|
|
g = config.scheme."${accentColour}-rgb-g";
|
|
b = config.scheme."${accentColour}-rgb-b";
|
|
};
|
|
in {
|
|
background = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.9)";
|
|
bar-bg-color = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.9)";
|
|
bar-fg-color = "rgba(${base05-rgb-r}, ${base05-rgb-g}, ${base05-rgb-b}, 1.0)";
|
|
border-color = "rgba(${accent.r}, ${accent.g}, ${accent.b}, 1.0)";
|
|
image-opacity = "1.0";
|
|
};
|
|
};
|
|
}
|