aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/config3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config b/sway/config
index 330f12f..363e666 100644
--- a/sway/config
+++ b/sway/config
@@ -181,6 +181,9 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
# Swayidle
exec swayidle -w \
+ timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \
+ timeout 310 "swaylock" \
+ timeout 315 "systemctl suspend" \
before-sleep "swaylock"
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1