1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-07-13 06:07:45 +02:00

wayland: fixed swayidle settings

This commit is contained in:
tiyn 2025-07-06 06:47:45 +02:00
parent cfe8c6d703
commit a005ba35db

View File

@ -1,7 +1,9 @@
#!/bin/sh #!/bin/sh
exec swayidle -w \ exec swayidle -w \
timeout 20 'systemctl suspend-then-hibernate' timeout 600 "notify-send -u critical 'Power' 'Laptop will suspend in 20 minutes!'"\
before-sleep 'swaylock' 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 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 1740 "notify-send -u critical 'Power' 'System will suspend in 1 minute!'"\
# timeout 1800 "systemctl suspend-then-hibernate" 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"