1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01: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 ]; home.packages = [ pkgs.mako ];
xdg.configFile."mako/config".text = '' xdg.configFile."mako/config" = {
${optionalInteger "max-visible" cfg.maxVisible} onChange = ''
${optionalString "sort" cfg.sort} ${pkgs.mako}/bin/makoctl reload || true
${optionalString "output" cfg.output} '';
${optionalString "layer" cfg.layer} text = ''
${optionalString "anchor" cfg.anchor} ${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 "font" cfg.font}
${optionalString "background-color" cfg.backgroundColor} ${optionalString "background-color" cfg.backgroundColor}
${optionalString "text-color" cfg.textColor} ${optionalString "text-color" cfg.textColor}
${optionalInteger "width" cfg.width} ${optionalInteger "width" cfg.width}
${optionalInteger "height" cfg.height} ${optionalInteger "height" cfg.height}
${optionalString "margin" cfg.margin} ${optionalString "margin" cfg.margin}
${optionalString "padding" cfg.padding} ${optionalString "padding" cfg.padding}
${optionalInteger "border-size" cfg.borderSize} ${optionalInteger "border-size" cfg.borderSize}
${optionalString "border-color" cfg.borderColor} ${optionalString "border-color" cfg.borderColor}
${optionalInteger "border-radius" cfg.borderRadius} ${optionalInteger "border-radius" cfg.borderRadius}
${optionalString "progress-color" cfg.progressColor} ${optionalString "progress-color" cfg.progressColor}
${optionalBoolean "icons" cfg.icons} ${optionalBoolean "icons" cfg.icons}
${optionalInteger "max-icon-size" cfg.maxIconSize} ${optionalInteger "max-icon-size" cfg.maxIconSize}
${optionalString "icon-path" cfg.iconPath} ${optionalString "icon-path" cfg.iconPath}
${optionalBoolean "markup" cfg.markup} ${optionalBoolean "markup" cfg.markup}
${optionalBoolean "actions" cfg.actions} ${optionalBoolean "actions" cfg.actions}
${optionalString "format" cfg.format} ${optionalString "format" cfg.format}
${optionalInteger "default-timeout" cfg.defaultTimeout} ${optionalInteger "default-timeout" cfg.defaultTimeout}
${optionalBoolean "ignore-timeout" cfg.ignoreTimeout} ${optionalBoolean "ignore-timeout" cfg.ignoreTimeout}
${optionalString "group-by" cfg.groupBy} ${optionalString "group-by" cfg.groupBy}
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
};
}; };
} }