From 0a6f1b24ebec96841c6551c4b8ba45909d728a5e Mon Sep 17 00:00:00 2001 From: odrling Date: Wed, 27 Mar 2024 16:59:04 +0100 Subject: [PATCH] [s6] swayidle: use run_on_lock --- .s6/services/swayidle/run | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.s6/services/swayidle/run b/.s6/services/swayidle/run index 8aa2404..e8b508f 100755 --- a/.s6/services/swayidle/run +++ b/.s6/services/swayidle/run @@ -3,12 +3,10 @@ importas SWAYIDLE_LOCK SWAYIDLE_LOCK importas SWAYIDLE_TURN_OFF SWAYIDLE_TURN_OFF swayidle -w -timeout ${SWAYIDLE_LOCK} "swaylock -f" -timeout ${SWAYIDLE_LOCK} "gpg-connect-agent reloadagent /bye" -timeout ${SWAYIDLE_LOCK} "pkill rbw-agent" +timeout ${SWAYIDLE_LOCK} "run_on_lock" timeout ${SWAYIDLE_TURN_OFF} "toggle_monitors off" resume "toggle_monitors on" after-resume "toggle_monitors on" -before-sleep "swaylock -f" -lock "swaylock -f" +before-sleep "run_on_lock" +lock "run_on_lock" idlehint 1200