summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorMichael Hoang <Enzime@users.noreply.github.com>2024-07-18 12:43:02 +1000
committerGitHub <noreply@github.com>2024-07-18 12:43:02 +1000
commita3e4a7b8ffc08c7dc1973822a77ad432e1ec3dec (patch)
treeb414ed3654357434c499795cd5931c3d668ad83e /modules/system
parent7522a30d328f885d20c2815bd05eb711bc69644c (diff)
parentce130f4b2009f1b4fd8bd21eef80e5dfd2faa6a5 (diff)
Merge pull request #999 from Enzime/restart-dock
defaults: restart Dock when changing settings
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults-write.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix
index 7e1fc44..33e918e 100644
--- a/modules/system/defaults-write.nix
+++ b/modules/system/defaults-write.nix
@@ -107,6 +107,11 @@ in
${concatStringsSep "\n" universalaccess}
${concatStringsSep "\n" ActivityMonitor}
${concatStringsSep "\n" CustomUserPreferences}
+
+ ${optionalString (length dock > 0) ''
+ echo >&2 "restarting Dock..."
+ killall Dock
+ ''}
'';
};