This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/desktop/avizo/default.nix
Evie Litherland-Smith 6bc0cbdc4f Add niri config, restructure files
Move sway to desktop/sway and move other packages under programs/sway
up a level to programs/desktop, add niri config to desktop/niri and
refactor common desktop imports into desktop/default.nix that also
imports (for now at least) sway and niri modules

Move wallpapers into programs/desktop since that's where they're
needed anyway

Add helper script to call swaybg with arguments
2024-05-27 20:07:18 +01:00

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";
};
};
}