mako: add onChange configuration reload

This commit is contained in:
Gabriel Fontes 2021-08-28 22:57:22 -03:00
parent ad05443e04
commit 8f1d8c2ef1
Failed to generate hash of commit

View file

@ -297,7 +297,11 @@ in {
home.packages = [ pkgs.mako ]; 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} ${optionalInteger "max-visible" cfg.maxVisible}
${optionalString "sort" cfg.sort} ${optionalString "sort" cfg.sort}
${optionalString "output" cfg.output} ${optionalString "output" cfg.output}
@ -328,4 +332,5 @@ in {
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
}; };
};
} }