~mil/sxmo-utils

1371e394f821e39e122c06a25c45011ad4304372 — Maarten van Gompel 3 months ago 6430537
Suspend Conky during screenlock #177
2 files changed, 11 insertions(+), 0 deletions(-)

M scripts/core/sxmo_postwake.sh
M scripts/core/sxmo_presuspend.sh
M scripts/core/sxmo_postwake.sh => scripts/core/sxmo_postwake.sh +5 -0
@@ 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) &


M scripts/core/sxmo_presuspend.sh => scripts/core/sxmo_presuspend.sh +6 -0
@@ 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