2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-11 02:40:11 +03:00
|
|
|
__findFile,
|
2024-11-04 04:37:29 +03:00
|
|
|
config,
|
2024-11-11 02:40:11 +03:00
|
|
|
pkgs,
|
2024-11-04 04:37:29 +03:00
|
|
|
...
|
|
|
|
}: let
|
|
|
|
alpha = config.module.style.opacity.hex;
|
|
|
|
color = config.module.style.color;
|
2024-11-11 13:10:39 +03:00
|
|
|
max = 5;
|
2024-11-04 04:37:29 +03:00
|
|
|
in {
|
|
|
|
file = (pkgs.formats.iniWithGlobalSection { }).generate "MakoConfig" {
|
|
|
|
globalSection = {
|
|
|
|
anchor = "top-center";
|
2024-11-23 08:15:47 +03:00
|
|
|
background-color = "#${color.highlight}${alpha}";
|
2024-11-04 04:37:29 +03:00
|
|
|
border-color = "#${color.border}${alpha}";
|
|
|
|
default-timeout = 10000;
|
|
|
|
font = "${config.module.style.font.serif.name} ${toString config.module.style.font.size.popup}";
|
|
|
|
height = 120;
|
|
|
|
icons = 0;
|
|
|
|
margin = 32;
|
2024-11-11 13:10:39 +03:00
|
|
|
max-history = max;
|
|
|
|
max-visible = max;
|
2024-11-22 18:44:10 +03:00
|
|
|
on-notify = "exec swayscript notify";
|
2024-11-06 04:19:12 +03:00
|
|
|
text-color = "#${config.module.style.color.bg.dark}";
|
2024-11-04 04:37:29 +03:00
|
|
|
width = 480;
|
|
|
|
};
|
|
|
|
sections = {
|
|
|
|
"mode=dnd" = {
|
|
|
|
invisible = 1;
|
2024-11-11 12:01:44 +03:00
|
|
|
on-notify = "exec ${pkgs.coreutils}/bin/true";
|
2024-11-04 04:37:29 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|