swayidle: add sputnik config

This commit is contained in:
2024-07-26 11:21:48 +02:00
parent dcbdc4203c
commit 62c641e1fc
2 changed files with 14 additions and 6 deletions

View File

@ -1,6 +0,0 @@
lock '$HOME/.local/bin/screenlock'
timeout 530 'notify-send "Locking in 30s"'
before-sleep 'loginctl lock-session'
timeout 600 'loginctl lock-session'
timeout 610 'niri msg action power-off-monitors'

View File

@ -0,0 +1,14 @@
lock '$HOME/.local/bin/screenlock'
before-sleep 'loginctl lock-session'
{% if hostname == "buran" %}
timeout 530 'notify-send "Locking in 30s"'
timeout 600 'loginctl lock-session'
timeout 610 'niri msg action power-off-monitors'
{% end %}
{% if hostname == "sputnik" %}
timeout 5030 'notify-send "Locking in 30s"'
timeout 6000 'loginctl lock-session'
timeout 6010 'niri msg action power-off-monitors'
{% end %}