From a005ba35dba99b3db1985cf091b19522906638d2 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 6 Jul 2025 06:47:45 +0200 Subject: [PATCH] wayland: fixed swayidle settings --- .config/wayland/swayidle.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/wayland/swayidle.sh b/.config/wayland/swayidle.sh index 8f90721..3bfefd5 100755 --- a/.config/wayland/swayidle.sh +++ b/.config/wayland/swayidle.sh @@ -1,7 +1,9 @@ #!/bin/sh exec swayidle -w \ - timeout 20 'systemctl suspend-then-hibernate' - before-sleep 'swaylock' - # timeout 1500 "notify-send -u critical 'Power' 'Laptop will suspend in 5 minutes!'"\ - # timeout 1740 "notify-send -u critical 'Power' 'System will suspend in 1 minute!'"\ - # timeout 1800 "systemctl suspend-then-hibernate" + timeout 600 "notify-send -u critical 'Power' 'Laptop will suspend in 20 minutes!'"\ + timeout 1200 "notify-send -u critical 'Power' 'Laptop will suspend in 10 minutes!'"\ + timeout 1500 "notify-send -u critical 'Power' 'Laptop will suspend in 5 minutes!'"\ + timeout 1740 "notify-send -u critical 'Power' 'System will suspend in 1 minute!'"\ + timeout 1790 "notify-send -u critical 'Power' 'System will suspend in 10 seconds!'"\ + timeout 1795 "notify-send -u critical 'Power' 'System will suspend in 5 seconds!'"\ + timeout 1800 "systemctl suspend-then-hibernate"