diff --git a/tree/.config/swayidle/config b/tree/.config/swayidle/config deleted file mode 100644 index 0a958b6..0000000 --- a/tree/.config/swayidle/config +++ /dev/null @@ -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' diff --git a/tree/.config/swayidle/config.tpl b/tree/.config/swayidle/config.tpl new file mode 100644 index 0000000..3241d14 --- /dev/null +++ b/tree/.config/swayidle/config.tpl @@ -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 %}