nixos_config/home/modules/services/mako.nix
2026-05-22 19:48:24 +02:00

40 lines
954 B
Nix

{ theme, ... }:
let
p = theme.palette;
fonts = theme.fonts;
fontSize = toString fonts.sizes.applications;
in
{
services.mako = {
enable = true;
settings = {
actions = true;
anchor = "top-center";
background-color = "${p.darkestGray}FF";
border-color = p.purple;
border-radius = 0;
default-timeout = 10000;
font = "${fonts.sansSerif.name} ${fontSize}";
height = 100;
width = 600;
icons = true;
ignore-timeout = false;
layer = "overlay";
margin = 10;
markup = true;
progress-color = "over ${p.darkGray}";
text-color = p.lightGray;
"urgency=critical" = {
background-color = "${p.darkestGray}FF";
border-color = p.red;
text-color = p.lightGray;
};
"urgency=low" = {
background-color = "${p.darkestGray}FF";
border-color = p.gray;
text-color = p.lightGray;
};
};
};
}