~mil/sxmo-devel

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

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

 5 files changed, 12 insertions(+), 2 deletions(-)
#480573 .build.yml success
builds.sr.ht
sxmo-utils/patches/.build.yml: SUCCESS in 23s

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

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

✓ #480573 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/480573
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/21891/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sxmo-utils 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 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/rtcwake  | 3 +++
 scripts/core/sxmo_postwake.sh  | 1 -
 scripts/core/sxmo_rtcwake.sh   | 1 -
 4 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 configs/default_hooks/postwake
 create mode 100644 configs/default_hooks/rtcwake

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/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_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 23s

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

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

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