From 766b4eca15f7d3dda9cb9522549b220dac0de526 Mon Sep 17 00:00:00 2001 From: winston Date: Sun, 8 Sep 2024 23:07:47 +0200 Subject: [PATCH] fix: kitty darkman sync --- home/apps/kitty.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/apps/kitty.nix b/home/apps/kitty.nix index f071413..c346783 100644 --- a/home/apps/kitty.nix +++ b/home/apps/kitty.nix @@ -36,6 +36,8 @@ in tab_title_template = "{index}: {title}{sup.num_windows if num_windows > 1 else ''}{activity_symbol}{bell_symbol}"; macos_option_as_alt = "yes"; + + shell = lib.mkIf config.programs.nushell.enable "zsh -c 'nu'"; }; keybindings = { @@ -105,10 +107,10 @@ in services.darkman = lib.mkIf config.services.darkman.enable { lightModeScripts.kitty-theme = '' - ${config.programs.kitty.package}/bin/kitty +kitten themes --config-file-name=themes.conf "milspec-light" + ${config.programs.kitty.package}/bin/kitten themes --reload-in=all --config-file-name=themes.conf "milspec-light" ''; darkModeScripts.kitty-theme = '' - ${config.programs.kitty.package}/bin/kitty +kitten themes --config-file-name=themes.conf "milspec-dark" + ${config.programs.kitty.package}/bin/kitten themes --reload-in=all --config-file-name=themes.conf "milspec-dark" ''; }; }