- Boot sequence cleanups:
- Scope ModemManager's musl shared-plugin LD_PRELOAD to the child daemon via
supervise_daemon_args="--env LD_PRELOAD=..." so OpenRC helpers and plugins
start cleanly with zero "symbol not found" errors.
- Link XLibre fbdev_drv.so against libfbdevhw.so and libshadow.so, pin
libxfont2 in rootfs-packages.txt, populate /usr/share/fonts/*/fonts.dir,
provide XKeysymDB entries, create ~/.cache before dmenu_run, disable TearFree
for ShadowFB modesetting, and avoid D-Bus autolaunch collision with
ModemManager.
- Enable CONFIG_SYN_COOKIES=y and disable IPMI_HANDLER in
geminux-mt6797x.config, add /etc/sysctl.d/00-alpine.conf, drop x86
kernel.nmi_watchdog from 99-geminux-power.conf, and disable module
load/unload in zram-init for built-in zram.
- Add MT6797 ALSA UCM2 DL2/DL3/UL2/UL3/UL_MONO_1 backend DAI routes in
HiFi.conf and apply 0006-mt6797-boot-cleanups.patch (stk3310 ID 0x11,
mt6797-fm firmware search path, mt6797_mac_wq, and pre-auth TX abort).
- Chrony immediate online time sync:
- Enable FAST_STARTUP, configure makestep 1.0 -1 with sourcedir
/etc/chrony/sources.d, and trigger burst/waitsync/makestep/hwclock on
NetworkManager interface up via 30-geminux-chrony.
- Date, Time & Timezone UI:
- Add geminux-datetime libgemui X11 utility with zoneinfo browser, live
search, region filters, and NTP sync trigger.
- Add doas-authorized geminux-tzctl helper with zoneinfo validation and
update geminux-statusd to reload /etc/timezone cleanly under musl.
41 lines
1.2 KiB
Bash
Executable File
41 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Apply a Geminux .xth theme across .Xresources, xrdb, dunst, dwm, st, and libgemui apps.
|
|
set -eu
|
|
|
|
HOME_DIR="${HOME:-/home/user}"
|
|
THEME_DIR="$HOME_DIR/.xthemes"
|
|
TARGET="${1:-}"
|
|
|
|
if [ -z "$TARGET" ]; then
|
|
if [ -d "$THEME_DIR" ]; then
|
|
ls -1 "$THEME_DIR"/*.xth 2>/dev/null | xargs -r -n1 basename | sed 's/\.xth$//'
|
|
fi
|
|
exit 0
|
|
fi
|
|
|
|
if [ -f "$TARGET" ]; then
|
|
THEME_FILE="$TARGET"
|
|
elif [ -f "$THEME_DIR/$TARGET.xth" ]; then
|
|
THEME_FILE="$THEME_DIR/$TARGET.xth"
|
|
elif [ -f "/etc/skel/.xthemes/$TARGET.xth" ]; then
|
|
THEME_FILE="/etc/skel/.xthemes/$TARGET.xth"
|
|
else
|
|
echo "Error: theme '$TARGET' not found in $THEME_DIR" >&2
|
|
exit 1
|
|
fi
|
|
|
|
cp -f "$THEME_FILE" "$HOME_DIR/.Xresources"
|
|
if [ -n "${DISPLAY:-}" ] && command -v xrdb >/dev/null 2>&1; then
|
|
xrdb -merge "$HOME_DIR/.Xresources" 2>/dev/null || true
|
|
fi
|
|
|
|
/usr/bin/geminux-sync-dunst-theme
|
|
|
|
# Signal live applications (dwm, st, libgemui apps) to reload .Xresources via SIGUSR1
|
|
for proc in dwm st geminux-dialer geminux-callscreen geminux-sms geminux-contacts \
|
|
geminux-net geminux-audio geminux-camera geminux-control geminux-datetime geminux-themes geminux-lock; do
|
|
for pid in $(pidof "$proc" 2>/dev/null || true); do
|
|
kill -USR1 "$pid" 2>/dev/null || true
|
|
done
|
|
done
|