mirror of
https://github.com/nix-community/home-manager
synced 2025-01-11 11:39:49 +01:00
kitty: add onChange configuration reload
This commit is contained in:
parent
66d9dbfa36
commit
ad05443e04
1 changed files with 18 additions and 13 deletions
|
@ -110,24 +110,29 @@ in {
|
||||||
|
|
||||||
home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font;
|
home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font;
|
||||||
|
|
||||||
xdg.configFile."kitty/kitty.conf".text = ''
|
xdg.configFile."kitty/kitty.conf" = {
|
||||||
# Generated by Home Manager.
|
onChange = ''
|
||||||
# See https://sw.kovidgoyal.net/kitty/conf.html
|
${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) ''
|
${optionalString (cfg.font != null) ''
|
||||||
font_family ${cfg.font.name}
|
font_family ${cfg.font.name}
|
||||||
${optionalString (cfg.font.size != null)
|
${optionalString (cfg.font.size != null)
|
||||||
"font_size ${toString cfg.font.size}"}
|
"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" =
|
xdg.configFile."kitty/macos-launch-services-cmdline" =
|
||||||
mkIf (cfg.darwinLaunchOptions != null) {
|
mkIf (cfg.darwinLaunchOptions != null) {
|
||||||
|
|
Loading…
Reference in a new issue