From 2a08b80ecdedea6b198d777ecea5db1a1b8e42f2 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 25 Jun 2023 12:18:08 +0530 Subject: fixing suspend script --- .scripts/suspend.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.scripts/suspend.sh b/.scripts/suspend.sh index 3e5a260..2068156 100755 --- a/.scripts/suspend.sh +++ b/.scripts/suspend.sh @@ -1,6 +1,7 @@ #!/bin/bash swayidle -w \ - timeout 240 ' swaylock ' \ - timeout 400 ' hyprctl dispatch dpms off' \ + timeout 600 'swaylock -f' \ + timeout 900 ' hyprctl dispatch dpms off' \ resume ' hyprctl dispatch dpms on' \ - before-sleep 'swaylock' + before-sleep 'loginctl lock-session $XDG_SESSION_ID' \ + lock 'playerctl -a pause && swaylock -f' -- cgit v1.2.3