diff --git a/modules/services/window-managers/hyprland.nix b/modules/services/window-managers/hyprland.nix index 35e47a152..be2f8c4c7 100644 --- a/modules/services/window-managers/hyprland.nix +++ b/modules/services/window-managers/hyprland.nix @@ -310,6 +310,7 @@ in { After = [ "graphical-session-pre.target" ]; Before = lib.mkIf cfg.systemd.enableXdgAutostart [ "xdg-desktop-autostart.target" ]; + ExecStop = "${cfg.finalPackage}/bin/hyprctl dispatch exit"; }; }; };