nix/home/config/mako/default.nix

19 lines
620 B
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ pkgs, config, ... }: let
2024-06-29 18:05:39 +03:00
alpha = config.style.opacity.hex;
2024-05-07 14:09:40 +03:00
in {
2024-06-22 23:34:03 +03:00
file = (pkgs.formats.iniWithGlobalSection {}).generate "MakoConfig" {
2024-06-18 11:07:11 +03:00
globalSection = {
anchor = "top-center";
2024-06-29 18:05:39 +03:00
background-color = "#${config.style.color.bg.dark}${alpha}";
border-color = "#${config.style.color.border}${alpha}";
2024-08-20 20:24:43 +03:00
default-timeout = 5000;
2024-06-29 18:05:39 +03:00
font = "${config.style.font.serif.name} ${toString config.style.font.size.popup}";
2024-06-18 11:07:11 +03:00
height = 120;
icons = 0;
margin = 32;
2024-06-29 18:05:39 +03:00
text-color = "#${config.style.color.fg.light}";
2024-06-18 11:07:11 +03:00
width = 480;
};
};
2024-04-06 03:03:58 +03:00
}