From 1371e394f821e39e122c06a25c45011ad4304372 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Tue, 23 Feb 2021 19:05:54 +0100 Subject: [PATCH] Suspend Conky during screenlock #177 --- scripts/core/sxmo_postwake.sh | 5 +++++ scripts/core/sxmo_presuspend.sh | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/scripts/core/sxmo_postwake.sh b/scripts/core/sxmo_postwake.sh index f3f7522..18e3488 100755 --- a/scripts/core/sxmo_postwake.sh +++ b/scripts/core/sxmo_postwake.sh @@ -2,7 +2,12 @@ # This script is called when the system has successfully woken up after sleep +# include common definitions +# shellcheck source=scripts/core/sxmo_common.sh +. "$(dirname "$0")/sxmo_common.sh" + sxmo_statusbarupdate.sh +pkill -CONT conky (sleep 15 && sxmo_resetscaninterval.sh) & diff --git a/scripts/core/sxmo_presuspend.sh b/scripts/core/sxmo_presuspend.sh index 2319330..e41c012 100755 --- a/scripts/core/sxmo_presuspend.sh +++ b/scripts/core/sxmo_presuspend.sh @@ -2,6 +2,12 @@ # This script is called prior to suspending +# include common definitions +# shellcheck source=scripts/core/sxmo_common.sh +. "$(dirname "$0")/sxmo_common.sh" + +pkill -STOP conky + # If this script returns a non-zero exit code, suspension will be cancelled if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/presuspend" ]; then