configuration.nix/home/wm/addon/swaync/default.nix

53 lines
1.2 KiB
Nix

{ pkgs, ... }: {
services.swaync = {
enable = true;
settings = {
positionX = "right";
positionY = "top";
layer = "overlay";
control-center-margin-top = 0;
control-center-margin-bottom = 0;
control-center-margin-right = 0;
control-center-margin-left = 0;
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;
widgets = [
"title"
"dnd"
"mpris"
"notifications"
];
widget-config = {
title = {
text = "Notifications";
clear-all-button = true;
button-text = "󰆴 Clear";
};
dnd = {
text = "Do Not Disturb";
};
label = {
max-lines = 5;
text = "Notifications";
};
mpris = {
image-size = 96;
image-radius = 12;
};
};
};
style = ./style.css;
};
}