1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

mako: add onChange configuration reload

This commit is contained in:
Gabriel Fontes 2021-08-28 22:57:22 -03:00
parent ad05443e04
commit 8f1d8c2ef1
No known key found for this signature in database
GPG key ID: 2E54EA7BFE630916

View file

@ -297,35 +297,40 @@ in {
home.packages = [ pkgs.mako ];
xdg.configFile."mako/config".text = ''
${optionalInteger "max-visible" cfg.maxVisible}
${optionalString "sort" cfg.sort}
${optionalString "output" cfg.output}
${optionalString "layer" cfg.layer}
${optionalString "anchor" cfg.anchor}
xdg.configFile."mako/config" = {
onChange = ''
${pkgs.mako}/bin/makoctl reload || true
'';
text = ''
${optionalInteger "max-visible" cfg.maxVisible}
${optionalString "sort" cfg.sort}
${optionalString "output" cfg.output}
${optionalString "layer" cfg.layer}
${optionalString "anchor" cfg.anchor}
${optionalString "font" cfg.font}
${optionalString "background-color" cfg.backgroundColor}
${optionalString "text-color" cfg.textColor}
${optionalInteger "width" cfg.width}
${optionalInteger "height" cfg.height}
${optionalString "margin" cfg.margin}
${optionalString "padding" cfg.padding}
${optionalInteger "border-size" cfg.borderSize}
${optionalString "border-color" cfg.borderColor}
${optionalInteger "border-radius" cfg.borderRadius}
${optionalString "progress-color" cfg.progressColor}
${optionalBoolean "icons" cfg.icons}
${optionalInteger "max-icon-size" cfg.maxIconSize}
${optionalString "icon-path" cfg.iconPath}
${optionalBoolean "markup" cfg.markup}
${optionalBoolean "actions" cfg.actions}
${optionalString "format" cfg.format}
${optionalInteger "default-timeout" cfg.defaultTimeout}
${optionalBoolean "ignore-timeout" cfg.ignoreTimeout}
${optionalString "group-by" cfg.groupBy}
${optionalString "font" cfg.font}
${optionalString "background-color" cfg.backgroundColor}
${optionalString "text-color" cfg.textColor}
${optionalInteger "width" cfg.width}
${optionalInteger "height" cfg.height}
${optionalString "margin" cfg.margin}
${optionalString "padding" cfg.padding}
${optionalInteger "border-size" cfg.borderSize}
${optionalString "border-color" cfg.borderColor}
${optionalInteger "border-radius" cfg.borderRadius}
${optionalString "progress-color" cfg.progressColor}
${optionalBoolean "icons" cfg.icons}
${optionalInteger "max-icon-size" cfg.maxIconSize}
${optionalString "icon-path" cfg.iconPath}
${optionalBoolean "markup" cfg.markup}
${optionalBoolean "actions" cfg.actions}
${optionalString "format" cfg.format}
${optionalInteger "default-timeout" cfg.defaultTimeout}
${optionalBoolean "ignore-timeout" cfg.ignoreTimeout}
${optionalString "group-by" cfg.groupBy}
${cfg.extraConfig}
'';
${cfg.extraConfig}
'';
};
};
}