nix/user/common/mako/default.nix

19 lines
609 B
Nix
Raw Normal View History

{ style, pkgs, config, ... }: let
2024-05-07 22:54:40 +03:00
alpha = 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";
background-color = "#${style.color.bg.dark}${alpha}";
2024-06-23 01:02:11 +03:00
border-color = "#${style.color.border}${alpha}";
default-timeout = config.setting.timeout.popup;
2024-06-22 23:34:03 +03:00
font = "${style.font.serif.name} ${toString style.font.size.popup}";
2024-06-18 11:07:11 +03:00
height = 120;
icons = 0;
margin = 32;
text-color = "#${style.color.fg.light}";
width = 480;
};
};
2024-04-06 03:03:58 +03:00
}