19 lines
609 B
Nix
19 lines
609 B
Nix
{ style, pkgs, config, ... }: let
|
|
alpha = style.opacity.hex;
|
|
in {
|
|
file = (pkgs.formats.iniWithGlobalSection {}).generate "MakoConfig" {
|
|
globalSection = {
|
|
anchor = "top-center";
|
|
background-color = "#${style.color.bg.dark}${alpha}";
|
|
border-color = "#${style.color.border}${alpha}";
|
|
default-timeout = config.setting.timeout.popup;
|
|
font = "${style.font.serif.name} ${toString style.font.size.popup}";
|
|
height = 120;
|
|
icons = 0;
|
|
margin = 32;
|
|
text-color = "#${style.color.fg.light}";
|
|
width = 480;
|
|
};
|
|
};
|
|
}
|