nix/home/swaync/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2024-08-21 23:15:20 +02:00
{pkgs,...}:{
2024-08-23 13:17:59 +02:00
services.swaync = {
enable = true;
2024-08-23 15:24:38 +02:00
settings = {
positionX = "left";
positionY = "top";
layer = "overlay";
control-center-layer = "top";
layer-shell = true;
cssPriority = "application";
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 = 64;
notification-body-image-height = 100;
notification-body-image-width = 200;
};
2024-08-23 13:17:59 +02:00
style =
''
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
2024-08-23 15:24:38 +02:00
background: #282828;
2024-08-23 13:17:59 +02:00
}
.notification {
border-radius: 12px;
margin: 6px 12px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
0 2px 6px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
''
;
};
2024-08-21 23:15:20 +02:00
home.packages = with pkgs; [
libnotify
];
2024-08-21 22:37:55 +02:00
}