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,7 +297,11 @@ in {
home.packages = [ pkgs.mako ];
xdg.configFile."mako/config".text = ''
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}
@ -328,4 +332,5 @@ in {
${cfg.extraConfig}
'';
};
};
}