hyprland: add swaync init config

This commit is contained in:
ooks-io 2024-11-13 12:52:48 +11:00
parent 0be36da274
commit 86b4adb6e2
2 changed files with 50 additions and 1 deletions

View file

@ -2,7 +2,8 @@
imports = [
./rofi.nix
./hyprcapture.nix
./mako.nix
# ./mako.nix
./swaync.nix
./tools.nix
./waybar.nix
./hypridle.nix

View file

@ -0,0 +1,48 @@
{
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};
}
'';
};
}