From 1e345bd8ea533900a071fcc8b6e83ab7fa3ccfa5 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Fri, 14 Jul 2023 01:04:28 -0400 Subject: [PATCH] Add 'lock' and 'before-sleep' options --- dot_local/bin/executable_swayidle-launcher.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_local/bin/executable_swayidle-launcher.tmpl b/dot_local/bin/executable_swayidle-launcher.tmpl index bca9ba6..ea5e69c 100644 --- a/dot_local/bin/executable_swayidle-launcher.tmpl +++ b/dot_local/bin/executable_swayidle-launcher.tmpl @@ -19,6 +19,8 @@ swayidle -w \ resume 'wlr-randr --output eDP-1 --on && kanshictl reload' \ timeout 3600 'loginctl suspend-then-hibernate' \ resume 'wlr-randr --output eDP-1 --on && kanshictl reload' \ + lock 'waylock-launcher' \ + before-sleep 'waylock-launcher' \ 2>&1 | tee -a "$LOG_FILE" & disown {{- else if eq .chezmoi.hostname "hydrus" }} # lock: 5m, display: 15m @@ -26,6 +28,8 @@ swayidle -w \ timeout 300 'waylock-launcher' \ timeout 900 'wlr-randr --output DP-1 --off --output DP-2 --off' \ resume 'wlr-randr --output DP-1 --on --output DP-2 --on && sleep 2 && kanshictl reload' \ + lock 'waylock-launcher' \ + before-sleep 'waylock-launcher' \ 2>&1 | tee -a "$LOG_FILE" & disown {{- else }} # lock after 5m