before-sleep 'loginctl lock-session'

{% if hostname == "sputnik" %}
timeout 1770 'notify-send --app-name=swayidle "Locking in 30s"'
timeout 1800 'loginctl lock-session'
{% else %}
timeout  530 'notify-send --app-name=swayidle "Locking in 30s"'
timeout  600 'loginctl lock-session'
{% end %}

{% if hostname == "buran" %}
timeout 660 'niri msg action power-off-monitors'
{% end %}
