From e2e32fb6cddd17d9df8fcd41b2954aeba16b8d97 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Fri, 9 May 2025 10:31:00 -0700 Subject: [PATCH] [hyprland] Re-configure swayidle as a service --- home-manager/features/hyprland.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home-manager/features/hyprland.nix b/home-manager/features/hyprland.nix index 7175db6..4659c20 100644 --- a/home-manager/features/hyprland.nix +++ b/home-manager/features/hyprland.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { home.packages = with pkgs; [ - swayidle # lock on idle swayosd # volume pop-up swaynotificationcenter # notifications hyprpolkitagent # Privilege managent @@ -12,6 +11,16 @@ xclip ]; + services.swayidle = { + enable = true; + events = [ + { + event = "before-sleep"; + command = "hyprlock"; + } + ]; + }; + wayland.windowManager.hyprland = { enable = true; plugins = [