ooknet/modules/home/workstation/hyprland/components/swaync.nix

48 lines
1 KiB
Nix

{
hozen,
lib,
pkgs,
osConfig,
...
}: let
inherit (osConfig.ooknet.appearance) fonts;
inherit (hozen) color;
in {
services.swaync = {
enable = true;
settings = {
positionX = "right";
positionY = "top";
layer = "overlay";
control-center-layer = "top";
layer-shell = true;
control-center-margin-top = 0;
control-center-margin-bottom = 0;
control-center-margin-right = 0;
control-center-margin-left = 0;
notification-2fa-action = true;
notification-inline-replies = false;
notification-icon-size = 32;
notification-body-image-height = 100;
notification-body-image-width = 200;
};
style =
/*
css
*/
''
* {
font-family: ${fonts.monospace.family};
font-size: 14px;
}
.notification.critical {
border: 3px solid #${color.error.border};
background-color: #${color.error.bg};
color: #${color.error.fg};
}
'';
};
}