Suspend Conky during screenlock #177

master
Maarten van Gompel 4 years ago
parent 6430537f55
commit 1371e394f8
  1. 5
      scripts/core/sxmo_postwake.sh
  2. 6
      scripts/core/sxmo_presuspend.sh

@ -2,7 +2,12 @@
# This script is called when the system has successfully woken up after sleep # 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 sxmo_statusbarupdate.sh
pkill -CONT conky
(sleep 15 && sxmo_resetscaninterval.sh) & (sleep 15 && sxmo_resetscaninterval.sh) &

@ -2,6 +2,12 @@
# This script is called prior to suspending # 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 this script returns a non-zero exit code, suspension will be cancelled
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/presuspend" ]; then if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/presuspend" ]; then

Loading…
Cancel
Save