From 5ccfeacfac16c0eac04a708078764cf07da1a173 Mon Sep 17 00:00:00 2001 From: noneofyourbusiness Date: Wed, 4 Aug 2021 18:24:36 +0200 Subject: [PATCH] Update conky and the status bar on wake ups. Add USR2 signal to unlock hook, remove useless STOP and CONTINUE Update the bar in the same time. Signed-off-by: Stacy Harper --- configs/default_hooks/postwake | 3 +++ configs/default_hooks/presuspend | 1 - configs/default_hooks/unlock | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/default_hooks/postwake b/configs/default_hooks/postwake index fef6881..542d6c9 100644 --- a/configs/default_hooks/postwake +++ b/configs/default_hooks/postwake @@ -6,4 +6,7 @@ UNSUSPENDREASON="$1" #periodic wakeup) or "button". You will likely want to check against this and #decide what to do +pkill -USR2 conky # refresh conky +sxmo_statusbarupdate.sh + # Add here whatever you want to do diff --git a/configs/default_hooks/presuspend b/configs/default_hooks/presuspend index d7e87eb..9c9cd6b 100644 --- a/configs/default_hooks/presuspend +++ b/configs/default_hooks/presuspend @@ -6,7 +6,6 @@ # shellcheck source=scripts/core/sxmo_common.sh . "$(which sxmo_common.sh)" -pkill -STOP conky pkill clickclack pkill -f "$KEYBOARD" pkill mpv #if any audio/video is playing, kill it (it might stutter otherwise) diff --git a/configs/default_hooks/unlock b/configs/default_hooks/unlock index e42ce51..10fdb09 100644 --- a/configs/default_hooks/unlock +++ b/configs/default_hooks/unlock @@ -2,4 +2,3 @@ # This hook is called when the system becomes unlocked again -pkill -CONT conky