From 62c641e1fcd6a54d3aebdd6e0a06498ecfac2549 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Fri, 26 Jul 2024 11:21:48 +0200 Subject: [PATCH] swayidle: add sputnik config --- tree/.config/swayidle/config | 6 ------ tree/.config/swayidle/config.tpl | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) delete mode 100644 tree/.config/swayidle/config create mode 100644 tree/.config/swayidle/config.tpl 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 %}