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