Override stylix border colour for fuzzel, avizo and mako

Add default timeout (5s) to mako notifications
This commit is contained in:
Evie Litherland-Smith 2024-10-25 13:02:42 +01:00
parent 2dadd171e9
commit 147ef5daf0
3 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, lib, ... }:
{ {
programs.fuzzel = { programs.fuzzel = {
enable = true; enable = true;
@ -19,6 +19,7 @@
width = 1; width = 1;
radius = 5; radius = 5;
}; };
colors.border = lib.mkForce "${config.lib.stylix.scheme.base0E}ff";
}; };
}; };
} }

View file

@ -27,7 +27,14 @@
gpg-agent.pinentryPackage = pkgs.pinentry-qt; gpg-agent.pinentryPackage = pkgs.pinentry-qt;
avizo = { avizo = {
enable = true; enable = true;
settings.default.image-opacity = lib.mkForce "1.0"; settings.default = {
image-opacity = lib.mkForce "1.0";
border-color =
let
scheme = config.lib.stylix.scheme;
in
lib.mkForce "rgba(${scheme.base0E-rgb-r}, ${scheme.base0E-rgb-g}, ${scheme.base0E-rgb-b}, 1.0)";
};
}; };
kdeconnect = { kdeconnect = {
enable = true; enable = true;

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, lib, ... }:
{ {
services.mako = { services.mako = {
enable = true; enable = true;
@ -12,6 +12,7 @@
iconPath = with config.gtk.iconTheme; "${package}/share/icons/${name}"; iconPath = with config.gtk.iconTheme; "${package}/share/icons/${name}";
borderRadius = 5; borderRadius = 5;
borderSize = 1; borderSize = 1;
defaultTimeout = 0; borderColor = lib.mkForce config.lib.stylix.scheme.withHashtag.base0E;
defaultTimeout = (builtins.mul 5 1000); # 5s timeout
}; };
} }