Fix xkopher link focus and unlock clock; battery longevity pass

Map xkopher link focus through wrapped display rows and reset horizontal scroll in no-wrap mode. Refresh the status bar clock on unlock and from dmenu before republishing root WM_NAME. Re-analysis found two low-risk wins: force lz4 for the active zram swap and disable proactive compaction. Rebuild dmenu.so and smallweb.so, update guards and docs, redeploy live, and rebuild the image.
This commit is contained in:
Luxferre committed 2026-11-08 08:45:53 +02:00
1 parent 85c6a7b886
commit 3543556735
22 files changed
+402 -54

No files matched your search

Binary file not shown.
Binary file not shown.
@@ -501,6 +501,7 @@ is_screen_dark() {
}
sxmo_debug "$@"
force_bar=0
case "$1" in
network)
is_screen_dark && exit 0
@@ -514,6 +515,7 @@ case "$1" in
time)
is_screen_dark && exit 0
set_time 1
force_bar=1
;;
modem|volume)
is_screen_dark && exit 0
@@ -524,8 +526,11 @@ case "$1" in
;;
state_change)
set_state
# Always refresh the time file, even if this state-change raced ahead of
# display-on; dmenu reads these files directly after unlock.
set_time
force_bar=1
if ! is_screen_dark; then
set_time
set_inputmethod
if [ -z "$SXMO_NO_MODEM" ]; then
set_modem
@@ -570,7 +575,7 @@ if ! is_screen_dark && [ "${SXMO_WM:-dwm}" = "dwm" ] && command -v xsetroot >/de
_bar_cache="${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo_status_bar_cache"
_bar_prev=""
[ -r "$_bar_cache" ] && { read -r _bar_prev < "$_bar_cache" 2>/dev/null || _bar_prev=""; }
if [ "$_bar" != "$_bar_prev" ]; then
if [ "$force_bar" = "1" ] || [ "$_bar" != "$_bar_prev" ]; then
printf '%s\n' "$_bar" > "$_bar_cache" 2>/dev/null || true
DISPLAY="${DISPLAY:-:0}" xsetroot -name "$_bar" 2>/dev/null || true
fi
@@ -14,6 +14,9 @@ if [ -z "$SXMO_DISABLE_LEDS" ]; then
fi
sxmo_wm.sh display on
# Refresh the clock synchronously: periodics are suppressed while dark and
# dmenu republishes the root status from these files as soon as it opens.
sxmo_hook_statusbar.sh time >/dev/null 2>&1 || true
( sxmo_hook_statusbar.sh state_change >/dev/null 2>&1 & )
if [ -z "$SXMO_NO_VIRTUAL_KEYBOARD" ]; then
sxmo_wm.sh inputevent touchscreen on