Move avizo to separate file, make custom theme from base16

Adjust opacity of popups and desktop types
This commit is contained in:
Evie Litherland-Smith 2024-02-12 08:48:19 +00:00
parent acd3530e80
commit 779e01d1b7
3 changed files with 19 additions and 6 deletions

View file

@ -154,8 +154,8 @@
polarity = "dark";
opacity = {
applications = 0.85;
desktop = 0.85;
popups = 0.85;
desktop = 1.0;
popups = 0.5;
terminal = 0.85;
};
fonts = rec {

14
home/avizo/default.nix Normal file
View file

@ -0,0 +1,14 @@
{config, ...}: {
services.avizo = {
enable = true;
settings.default = with config.lib.stylix.colors; let
opacity = kind: (toString config.stylix.opacity.${kind});
in {
background = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, ${opacity "popups"})";
bar-bg-color = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, ${opacity "popups"})";
bar-fg-color = "rgba(${base05-rgb-r}, ${base05-rgb-g}, ${base05-rgb-b}, ${opacity "desktop"})";
border-color = "rgba(${base0E-rgb-r}, ${base0E-rgb-g}, ${base0E-rgb-b}, ${opacity "desktop"})";
image-opacity = opacity "desktop";
};
};
}

View file

@ -4,10 +4,7 @@
pkgs,
...
}: {
stylix.targets = {
avizo.enable = true;
xresources.enable = true;
};
stylix.targets.xresources.enable = true;
imports = [
../default.nix
../email/default.nix
@ -16,6 +13,7 @@
../waybar/default.nix
../rofi/default.nix
../swaync/default.nix
../avizo/default.nix
../alacritty/default.nix
../emacs/default.nix
../nyxt/default.nix
@ -183,6 +181,7 @@
"gtk-layer-shell"
"notifications"
"swaync-.*"
"avizo"
];
in
(lib.lists.forEach layers blur)