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

54 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-19 15:58:14 +05:30
{ pkgs, ... }: {
2024-05-18 10:25:01 +05:30
services.swaync = {
enable = true;
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;
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-19 15:58:14 +05:30
widgets = [
"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-19 15:58:14 +05:30
dnd = {
text = "Do Not Disturb";
};
2024-05-19 15:58:14 +05:30
label = {
max-lines = 5;
text = "Notifications";
};
2024-05-19 15:58:14 +05:30
mpris = {
image-size = 96;
image-radius = 12;
};
};
};
2024-05-18 10:25:01 +05:30
style = ./style.css;
};
}