diff options
-rwxr-xr-x | .scripts/suspend.sh | 7 |
1 files 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' |