aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/swayidle/config7
1 files changed, 5 insertions, 2 deletions
diff --git a/.config/swayidle/config b/.config/swayidle/config
index 74dd0fb..faee35b 100644
--- a/.config/swayidle/config
+++ b/.config/swayidle/config
@@ -1,3 +1,6 @@
-timeout 90 loginctl lock-session
+timeout 30 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
+timeout 45 'loginctl lock-session'
-lock "swaylock -c 000000"
+before-sleep 'loginctl lock-session'
+
+lock 'swaylock -f -c 000000'