diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-06-25 12:18:08 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-06-25 12:18:08 +0530 |
commit | 2a08b80ecdedea6b198d777ecea5db1a1b8e42f2 (patch) | |
tree | eeef835f35302e957c964dc154ee07dfa39487d3 /.scripts | |
parent | 291b855c6cd32393c32a52daf1782e1864000fdf (diff) |
fixing suspend script
Diffstat (limited to '.scripts')
-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' |