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;
|
|
|
|
in {
|
|
|
|
file = (pkgs.formats.iniWithGlobalSection { }).generate "MakoConfig" {
|
|
|
|
globalSection = {
|
|
|
|
anchor = "top-center";
|
2024-11-06 04:19:12 +03:00
|
|
|
background-color = "#${color.hl}${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 02:40:11 +03:00
|
|
|
on-notify = "exec ${pkgs.pipewire}/bin/pw-cat -p ${<static/Notification.ogg>}";
|
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-04-06 03:03:58 +03:00
|
|
|
}
|