~mil/sxmo-devel

sxmo-utils: Trigger status bar and conky update to rtcwake up too v2 SUPERSEDED

Stacy Harper: 2
 Trigger status bar and conky update to rtcwake up too
 Move conky update in default hooks

 7 files changed, 15 insertions(+), 3 deletions(-)
#480583 .build.yml success
builds.sr.ht
sxmo-utils/patches/.build.yml: SUCCESS in 21s

[Trigger status bar and conky update to rtcwake up too][0] v2 from [Stacy Harper][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/21893
[1]: mailto:contact@stacyharper.net

✓ #480583 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/480583
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/21893/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sxmo-utils v2 1/2] Trigger status bar and conky update to rtcwake up too Export this patch

Signed-off-by: Stacy Harper <contact@stacyharper.net>
---
 scripts/core/sxmo_rtcwake.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/core/sxmo_rtcwake.sh b/scripts/core/sxmo_rtcwake.sh
index efa31a9..c1d6a3d 100755
--- a/scripts/core/sxmo_rtcwake.sh
+++ b/scripts/core/sxmo_rtcwake.sh
@@ -3,6 +3,12 @@
# This script (and anything it calls) should return as quickly as possible
# as it blocks the system from suspending (and processing input) until done

# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
sxmo_statusbarupdate.sh
pkill -CONT conky

# If this script returns a non-zero exit code, the system will wake up

if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/rtcwake" ]; then
-- 
2.31.1

[PATCH sxmo-utils v2 2/2] Move conky update in default hooks Export this patch

As we moved conky on the user default xinit, we should also move the
manual trigger to conky update in hooks also.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
---
 configs/default_hooks/postwake   | 3 +++
 configs/default_hooks/presuspend | 3 +++
 configs/default_hooks/rtcwake    | 3 +++
 scripts/core/sxmo_postwake.sh    | 1 -
 scripts/core/sxmo_presuspend.sh  | 1 -
 scripts/core/sxmo_rtcwake.sh     | 1 -
 6 files changed, 9 insertions(+), 3 deletions(-)
 create mode 100644 configs/default_hooks/postwake
 create mode 100644 configs/default_hooks/presuspend
 create mode 100644 configs/default_hooks/rtcwake

Here I forget one conky kill action.

diff --git a/configs/default_hooks/postwake b/configs/default_hooks/postwake
new file mode 100644
index 0000000..724ea63
--- /dev/null
+++ b/configs/default_hooks/postwake
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

pkill -CONT conky
diff --git a/configs/default_hooks/presuspend b/configs/default_hooks/presuspend
new file mode 100644
index 0000000..e2c40b1
--- /dev/null
+++ b/configs/default_hooks/presuspend
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

pkill -STOP conky
diff --git a/configs/default_hooks/rtcwake b/configs/default_hooks/rtcwake
new file mode 100644
index 0000000..724ea63
--- /dev/null
+++ b/configs/default_hooks/rtcwake
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

pkill -CONT conky
diff --git a/scripts/core/sxmo_postwake.sh b/scripts/core/sxmo_postwake.sh
index 18e3488..fcc978a 100755
--- a/scripts/core/sxmo_postwake.sh
+++ b/scripts/core/sxmo_postwake.sh
@@ -7,7 +7,6 @@
. "$(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 d569b5d..2ac81c2 100755
--- a/scripts/core/sxmo_presuspend.sh
+++ b/scripts/core/sxmo_presuspend.sh
@@ -6,7 +6,6 @@
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"

pkill -STOP conky
pkill clickclack
pkill $KEYBOARD

diff --git a/scripts/core/sxmo_rtcwake.sh b/scripts/core/sxmo_rtcwake.sh
index c1d6a3d..1510ab2 100755
--- a/scripts/core/sxmo_rtcwake.sh
+++ b/scripts/core/sxmo_rtcwake.sh
@@ -7,7 +7,6 @@
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
sxmo_statusbarupdate.sh
pkill -CONT conky

# If this script returns a non-zero exit code, the system will wake up

-- 
2.31.1
builds.sr.ht
sxmo-utils/patches/.build.yml: SUCCESS in 21s

[Trigger status bar and conky update to rtcwake up too][0] v2 from [Stacy Harper][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/21893
[1]: mailto:contact@stacyharper.net

✓ #480583 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/480583