Keep the status bar clock minute-accurate, including while the panel is dark
- Add a lightweight statusbar_clock job (sxmo_run_aligned.sh 60 running sxmo_hook_statusbar.sh time) to all three sxmo_hook_start.sh copies while the heavier statusbar_periodics loop stays at 300 s. - Let the time action refresh 099-time even when the screen is blanked; only the xsetroot publish remains gated by ! is_screen_dark, so the native desktop clock is redrawn as soon as the panel wakes. - Guard the job and the time action in check-rebuild.sh, update AGENTS, MANUAL and the a1108 changelog, redeploy to the connected phone and rebuild the a1108 / dejavu image.
This commit is contained in:
1 parent
fb091749f0
commit
4963022c10
8 files changed
+49
-4
No files matched your search
@@ -73,6 +73,12 @@ sxmo_hook_statusbar.sh all
|
||||
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 300 \
|
||||
sxmo_hook_statusbar.sh periodics
|
||||
|
||||
# Refresh the status bar clock every minute. xsetroot also redraws the native
|
||||
# desktop clock, while the heavier modem/network periodics stay at 300 s and
|
||||
# the time action exits immediately while the panel is dark.
|
||||
sxmo_jobs.sh start statusbar_clock sxmo_run_aligned.sh 60 \
|
||||
sxmo_hook_statusbar.sh time
|
||||
|
||||
# dunst is required for warnings.
|
||||
/usr/bin/bananarchy-sync-dunst-theme --no-restart >/dev/null 2>&1 || true
|
||||
superctl start dunst
|
||||
|
||||
@@ -73,6 +73,12 @@ sxmo_hook_statusbar.sh all
|
||||
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 300 \
|
||||
sxmo_hook_statusbar.sh periodics
|
||||
|
||||
# Refresh the status bar clock every minute. xsetroot also redraws the native
|
||||
# desktop clock, while the heavier modem/network periodics stay at 300 s and
|
||||
# the time action exits immediately while the panel is dark.
|
||||
sxmo_jobs.sh start statusbar_clock sxmo_run_aligned.sh 60 \
|
||||
sxmo_hook_statusbar.sh time
|
||||
|
||||
# dunst is required for warnings.
|
||||
/usr/bin/bananarchy-sync-dunst-theme --no-restart >/dev/null 2>&1 || true
|
||||
superctl start dunst
|
||||
|
||||
@@ -81,6 +81,12 @@ sxmo_hook_statusbar.sh all
|
||||
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 300 \
|
||||
sxmo_hook_statusbar.sh periodics
|
||||
|
||||
# Refresh the status bar clock every minute. xsetroot also redraws the native
|
||||
# desktop clock, while the heavier modem/network periodics stay at 300 s and
|
||||
# the time action exits immediately while the panel is dark.
|
||||
sxmo_jobs.sh start statusbar_clock sxmo_run_aligned.sh 60 \
|
||||
sxmo_hook_statusbar.sh time
|
||||
|
||||
# dunst is required for warnings.
|
||||
/usr/bin/bananarchy-sync-dunst-theme --no-restart >/dev/null 2>&1 || true
|
||||
superctl start dunst
|
||||
|
||||
@@ -518,8 +518,10 @@ case "$1" in
|
||||
force_bar=1
|
||||
;;
|
||||
time)
|
||||
is_screen_dark && exit 0
|
||||
set_time 1
|
||||
# Keep the status file current even while the panel is dark: the final
|
||||
# xsetroot publish below is still gated by ! is_screen_dark, so the
|
||||
# desktop clock is redrawn as soon as the screen wakes.
|
||||
set_time
|
||||
force_bar=1
|
||||
;;
|
||||
modem|volume)
|
||||
|
||||
Reference in new issue
Block a user