1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00

kitty: add onChange configuration reload

This commit is contained in:
Gabriel Fontes 2021-09-05 14:19:37 -03:00
parent 66d9dbfa36
commit ad05443e04
No known key found for this signature in database
GPG Key ID: 2E54EA7BFE630916

View File

@ -110,7 +110,11 @@ in {
home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font;
xdg.configFile."kitty/kitty.conf".text = ''
xdg.configFile."kitty/kitty.conf" = {
onChange = ''
${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true
'';
text = ''
# Generated by Home Manager.
# See https://sw.kovidgoyal.net/kitty/conf.html
@ -128,6 +132,7 @@ in {
${cfg.extraConfig}
'';
};
xdg.configFile."kitty/macos-launch-services-cmdline" =
mkIf (cfg.darwinLaunchOptions != null) {