kitty: add onChange configuration reload
This commit is contained in:
parent
66d9dbfa36
commit
ad05443e04
|
@ -110,24 +110,29 @@ in {
|
|||
|
||||
home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font;
|
||||
|
||||
xdg.configFile."kitty/kitty.conf".text = ''
|
||||
# Generated by Home Manager.
|
||||
# See https://sw.kovidgoyal.net/kitty/conf.html
|
||||
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
|
||||
|
||||
${optionalString (cfg.font != null) ''
|
||||
font_family ${cfg.font.name}
|
||||
${optionalString (cfg.font.size != null)
|
||||
"font_size ${toString cfg.font.size}"}
|
||||
''}
|
||||
${optionalString (cfg.font != null) ''
|
||||
font_family ${cfg.font.name}
|
||||
${optionalString (cfg.font.size != null)
|
||||
"font_size ${toString cfg.font.size}"}
|
||||
''}
|
||||
|
||||
${toKittyConfig cfg.settings}
|
||||
${toKittyConfig cfg.settings}
|
||||
|
||||
${toKittyKeybindings cfg.keybindings}
|
||||
${toKittyKeybindings cfg.keybindings}
|
||||
|
||||
${toKittyEnv cfg.environment}
|
||||
${toKittyEnv cfg.environment}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
};
|
||||
|
||||
xdg.configFile."kitty/macos-launch-services-cmdline" =
|
||||
mkIf (cfg.darwinLaunchOptions != null) {
|
||||
|
|
Loading…
Reference in a new issue