From 57da2eceb20a861e4597c179d36e8022ca722c4d Mon Sep 17 00:00:00 2001 From: leiserfg Date: Wed, 23 Oct 2024 16:00:16 +0200 Subject: [PATCH] Clean hyprland close on logout --- modules/services/window-managers/hyprland.nix | 1 + 1 file changed, 1 insertion(+) 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"; }; };