From 53d95427033faaf375dea4150b358bb42eefa044 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 30 Jul 2024 10:53:35 -0400 Subject: [PATCH] hyprland: remove sleep before suspend in idle script --- homeManagerModules/desktop/default.nix | 2 +- homeManagerModules/desktop/hyprland/scripts.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeManagerModules/desktop/default.nix b/homeManagerModules/desktop/default.nix index bc01eebe..20061e28 100644 --- a/homeManagerModules/desktop/default.nix +++ b/homeManagerModules/desktop/default.nix @@ -45,7 +45,7 @@ xdg = { dataFile."backgrounds".source = builtins.fetchGit { url = "https://github.com/alyraffauf/wallpapers.git"; - rev = "c0cf7212851ecf37103511fcf16fea11819eeff0"; + rev = "f6d8a67457be351ae2c3cbffccf14ba20fb7f6a0"; ref = "master"; }; diff --git a/homeManagerModules/desktop/hyprland/scripts.nix b/homeManagerModules/desktop/hyprland/scripts.nix index d5704a26..a9ac46f0 100644 --- a/homeManagerModules/desktop/hyprland/scripts.nix +++ b/homeManagerModules/desktop/hyprland/scripts.nix @@ -31,7 +31,7 @@ in { ["timeout 120 '${lib.getExe pkgs.brightnessctl} -s set 10' resume '${lib.getExe pkgs.brightnessctl} -r'"] ++ ( if cfg.desktop.hyprland.autoSuspend - then ["timeout 600 'sleep 2 && ${lib.getExe' pkgs.systemd "systemctl"} suspend'"] + then ["timeout 600 '${lib.getExe' pkgs.systemd "systemctl"} suspend'"] else [ "timeout 600 '${lib.getExe pkgs.swaylock}'" "timeout 630 '${hyprctl} dispatch dpms off' resume '${hyprctl} dispatch dpms on'"