Map Fn+Z/X to F11/F12, upgrade Alpine Edge rootfs, and update docs

This commit is contained in:
Luxferre committed 2026-11-26 09:28:30 +02:00
1 parent e8065bb014
commit e2981455ed
9 files changed
+32 -21

No files matched your search

+2 -1
View File
@@ -69,10 +69,11 @@ if [ ! -f "$ROOTFS/lib/apk/db/installed" ]; then
# shellcheck disable=SC2086
apk --root "$ROOTFS" --arch aarch64 add --initdb --no-scripts $EXTRA_GEMINUX $PKGS >/dev/null
else
# An existing rootfs only needs newly added packages; also refresh @geminux index.
# Refresh repositories, ensure package set, and upgrade installed Alpine Edge packages.
apk --root "$ROOTFS" --arch aarch64 update --force-refresh >/dev/null
# shellcheck disable=SC2086
apk --root "$ROOTFS" --arch aarch64 add --no-scripts $EXTRA_GEMINUX $PKGS >/dev/null
apk --root "$ROOTFS" --arch aarch64 upgrade --no-scripts
fi
"$REPO/scripts/prune-rootfs-packages.sh" "$ROOTFS" purge
+6 -3
View File
@@ -44,7 +44,7 @@ cat /tmp/gemini_dump.xkb
dump = res.stdout
checks = [
"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10",
"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12",
"asciitilde", "EuroSign", "Super_L", "ISO_Level3_Shift", "Mod4", "Mod5",
"GEMINUX_LALT", "GEMINUX_FN", "SetMods(modifiers=Mod4)",
'include "complete+custom"',
@@ -56,10 +56,13 @@ cat /tmp/gemini_dump.xkb
]
for token in checks:
assert token in dump, f"Expected '{token}' in compiled XKB dump"
# Verify digit AE01 order: [ 1, exclam, F1, asciitilde ]
# Verify digit AE01 and AB01/AB02 Z/X -> F11/F12 order
norm_dump = " ".join(dump.split())
assert "[ 1, exclam, F1, asciitilde ]" in dump or \
"1, exclam, F1, asciitilde" in " ".join(dump.split()), \
"1, exclam, F1, asciitilde" in norm_dump, \
"AE01 digit/F1/tilde mapping mismatch"
assert "z, Z, F11, guillemotleft" in norm_dump, "AB01 Z/F11 mapping mismatch"
assert "x, X, F12, guillemotright" in norm_dump, "AB02 X/F12 mapping mismatch"
with open(os.path.join(BASE_DIR, "src", "dwm", "dwm.c"), "r", encoding="utf-8") as f:
dwm_src = f.read()