summaryrefslogtreecommitdiff
path: root/.scripts/suspend.sh
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-06-25 12:18:08 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-06-25 12:18:08 +0530
commit2a08b80ecdedea6b198d777ecea5db1a1b8e42f2 (patch)
treeeeef835f35302e957c964dc154ee07dfa39487d3 /.scripts/suspend.sh
parent291b855c6cd32393c32a52daf1782e1864000fdf (diff)
fixing suspend script
Diffstat (limited to '.scripts/suspend.sh')
-rwxr-xr-x.scripts/suspend.sh7
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'