Files
geminux/overlay/rootfs/usr/bin/geminux-apply-theme
T
Luxferre e01806f3c8 Add Webarchy ultrawide browser, DNS UI, WLAN/st fixes, and media/CLI packages
- Port Webarchy GTK3/WebKit2GTK browser for 2160x1080 with flush-right vertical tab bar, DPI-scaled .Xresources SIGUSR1 theming, single-instance FIFO, and GPU crash CPU fallback (src/webarchy/webarchy.cpp, geminux-webarchy)
- Cross-compile pure-C gdk-pixbuf 2.42.12 (geminux-gdk-pixbuf) and compile rootfs GSettings schemas so webkit2gtk-4.1 and gst-plugins-good install with zero Rust ELFs
- Add zero-Rust geminux-mpv (mpv v0.40.0, FFmpeg n7.1.5, libplacebo, gst-libav 1.28.9) plus python3, py3-pip, mpg123, yt-dlp (quickjs), gnupg, gpg, pass, and pinentry-curses
- Fix MT6797 WLAN peer deauth and CCMP EAPOL GTK rekey (patch 0007), set wifi.powersave = 2, pin active WLAN connections in geminux-net, and add the DNS tab with geminux-dnsctl
- Restore st filled/hollow cursor focus across screenlock and libgemui grabs via dwm, libgemui, and st updates
- Update README.md, MANUAL.md, ARCHITECTURE.md, POWER-OPTIMIZATION.md, check-rebuild.sh, and host Python tests
2026-11-23 12:46:34 +02:00

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, webarchy, libgemui apps) to reload .Xresources via SIGUSR1
for proc in dwm st webarchy 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