-exec swayidle \
- timeout 300 "lock.nosmartcard" \
- timeout 600 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on" \
- before-sleep "lock.nosmartcard"
+{% set lockcmd = "swaylock -e -f -i ~/Pictures/lockscreen_1080_1.png" %}
+
+exec swayidle -w \
+timeout 300 "{{lockcmd}}" \
+ timeout 600 'systemctl suspend' \
+ before-sleep "{{lockcmd}}"