2024-05-19 15:58:14 +05:30
|
|
|
{ pkgs, ... }: {
|
2024-05-18 10:25:01 +05:30
|
|
|
services.swaync = {
|
|
|
|
enable = true;
|
2024-05-18 11:40:54 +05:30
|
|
|
settings = {
|
2024-05-19 15:58:14 +05:30
|
|
|
positionX = "right";
|
|
|
|
positionY = "top";
|
|
|
|
layer = "overlay";
|
|
|
|
control-center-margin-top = 0;
|
|
|
|
control-center-margin-bottom = 0;
|
|
|
|
control-center-margin-right = 0;
|
2024-05-19 15:58:50 +05:30
|
|
|
control-center-margin-left = 0;
|
2024-05-19 15:58:14 +05:30
|
|
|
control-center-layer = "overlay";
|
|
|
|
timeout = 10;
|
|
|
|
timeout-low = 5;
|
|
|
|
timeout-critical = 0;
|
|
|
|
notification-window-width = 500;
|
|
|
|
keyboard-shortcuts = true;
|
|
|
|
image-visibility = "when-available";
|
|
|
|
fit-to-screen = true;
|
|
|
|
control-center-width = 500;
|
|
|
|
transition-time = 50;
|
|
|
|
hide-on-clear = true;
|
|
|
|
hide-on-action = true;
|
|
|
|
script-fail-notify = true;
|
2024-05-18 11:40:54 +05:30
|
|
|
|
2024-05-19 15:58:14 +05:30
|
|
|
widgets = [
|
2024-05-18 11:40:54 +05:30
|
|
|
"title"
|
|
|
|
"dnd"
|
|
|
|
"mpris"
|
|
|
|
"notifications"
|
|
|
|
];
|
2024-05-19 15:58:14 +05:30
|
|
|
widget-config = {
|
|
|
|
title = {
|
|
|
|
text = "Notifications";
|
|
|
|
clear-all-button = true;
|
|
|
|
button-text = " Clear";
|
2024-05-18 11:40:54 +05:30
|
|
|
};
|
2024-05-19 15:58:14 +05:30
|
|
|
dnd = {
|
|
|
|
text = "Do Not Disturb";
|
2024-05-18 11:40:54 +05:30
|
|
|
};
|
2024-05-19 15:58:14 +05:30
|
|
|
label = {
|
|
|
|
max-lines = 5;
|
|
|
|
text = "Notifications";
|
2024-05-18 11:40:54 +05:30
|
|
|
};
|
2024-05-19 15:58:14 +05:30
|
|
|
mpris = {
|
|
|
|
image-size = 96;
|
|
|
|
image-radius = 12;
|
2024-05-18 11:40:54 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-05-18 10:25:01 +05:30
|
|
|
style = ./style.css;
|
|
|
|
};
|
|
|
|
}
|