diff --git a/nix/hm-modules.nix b/nix/hm-modules.nix index 286f0cb..4ce47a7 100644 --- a/nix/hm-modules.nix +++ b/nix/hm-modules.nix @@ -100,6 +100,12 @@ in { xdg.configFile = { "mango/config.conf" = lib.mkIf (cfg.settings != "") { text = cfg.settings; + onChange = '' + XDG_CURRENT_DESKTOP=''${XDG_CURRENT_DESKTOP} + if [[ $XDG_CURRENT_DESKTOP == "mango" ]]; then + mmsg -d reload-config + fi + ''; }; "mango/autostart.sh" = lib.mkIf (cfg.autostart_sh != "") { source = autostart_sh;