summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/settings/darwin.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix
index f8665ac5..7037ddf9 100644
--- a/user/settings/darwin.nix
+++ b/user/settings/darwin.nix
@@ -77,6 +77,7 @@
                       MODE="light"
                     fi
                     emacsclient="${config.programs.emacs.finalPackage}/bin/emacsclient"
+                    kitty="${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --cache-age=-1"
                     emacsSwitchTheme () {
                       if pgrep -q Emacs; then
                         if [[  $MODE == "dark"  ]]; then
@@ -90,7 +91,17 @@
                         fi
                       fi
                     }
-                    emacsSwitchTheme $@
+                    kittySwitchTheme () {
+                      if pgrep -q kitty; then
+                        if [[  $MODE == "dark"  ]]; then
+                          $kitty 'Alabaster Dark'
+                        elif [[ $MODE == "light" ]]; then
+                          $kitty 'Alabaster'
+                        fi
+                      fi
+                    }
+                    emacsSwitchTheme
+                    kittySwitchTheme
                   ''
               )
           )