ricefields/hypr/LilieshBase/scripts/sleep.sh
2025-05-31 19:34:27 +02:00

5 lines
267 B
Bash
Executable file

swayidle -w timeout 300 '~/.config/hypr/scripts/lock.sh' \
timeout 600 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \
timeout 900 'systemctl suspend' \
before-sleep '~/.config/hypr/scripts/lock.sh' &