2024-10-11 23:27:07 +03:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
let
|
|
|
|
alpha = config.style.opacity.hex;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
file = (pkgs.formats.iniWithGlobalSection { }).generate "MakoConfig" {
|
2024-11-02 20:17:34 +03:00
|
|
|
globalSection = let
|
|
|
|
color = config.style.color;
|
|
|
|
in {
|
2024-10-11 23:27:07 +03:00
|
|
|
anchor = "top-center";
|
2024-11-02 20:17:34 +03:00
|
|
|
background-color = "#${color.hl}${alpha}";
|
|
|
|
border-color = "#${color.border}${alpha}";
|
2024-10-11 23:27:07 +03:00
|
|
|
default-timeout = 10000;
|
|
|
|
font = "${config.style.font.serif.name} ${toString config.style.font.size.popup}";
|
|
|
|
height = 120;
|
|
|
|
icons = 0;
|
|
|
|
margin = 32;
|
|
|
|
text-color = "#${config.style.color.fg.light}";
|
|
|
|
width = 480;
|
|
|
|
};
|
2024-09-13 04:16:08 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
sections = {
|
|
|
|
"mode=dnd" = {
|
|
|
|
invisible = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|