Files
geminux/overlay/rootfs/usr/bin/geminux-apply-wallpaper
Luxferre 09c1e2ad36 Backport WM/dmenu xerror & UTF-8 fixes, add wallpaper manager, and set Anodized default
- wm,dmenu: backport ANODE a92e196 fixes for xerror recursion guards, non-fatal RENDER error suppression, bounded getservertime() polling, pointer ungrab/AsyncBoth/GrabModeAsync grab safety, FC_COLOR=FcFalse substitution, and UTF-8 sanitization + Pango ellipsization in drw.c
- wallpaper: port native X11 + Cairo wallpaper engine (geminux-wallpaper.h, geminux-wallpaper-x11.h) with pure-C gdk-pixbuf/PNG/JPEG/WebP/magick decoding, Wallpaper tab + CLI in geminux-themes, geminux-apply-wallpaper helper, and session/theme/HDMI/launcher hooks
- theme: set Anodized as default theme in /etc/skel/.Xresources and compiled-in/script fallbacks across libgemui, dwm, dmenu, st, webarchy, geminux-sync-gtk-theme, and geminux-sync-dunst-theme
- verify: extend check-rebuild.sh and test-theme-dunst-sync.py, prune stale skel theme artifacts in apply-geminux-overlay.sh, and rebuild prebuilt binaries
2026-11-27 17:13:35 +02:00

35 lines
956 B
Bash
Executable File

#!/bin/sh
# Apply or restore the Geminux desktop wallpaper via geminux-themes CLI engine (POSIX sh)
set -eu
case "${1:-}" in
-h|--help)
printf 'Usage:\n'
printf ' geminux-apply-wallpaper [--restore]\n'
printf ' geminux-apply-wallpaper IMAGE_PATH [--mode fill|fit|center|tile|stretch|span] [--bg #RRGGBB|theme] [--no-save]\n'
printf ' geminux-apply-wallpaper --solid #RRGGBB [--no-save]\n'
printf ' geminux-apply-wallpaper --theme-bg [--no-save]\n'
exit 0
;;
esac
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
if [ -x "$SCRIPT_DIR/geminux-themes" ]; then
BIN="$SCRIPT_DIR/geminux-themes"
elif command -v geminux-themes >/dev/null 2>&1; then
BIN="$(command -v geminux-themes)"
else
printf 'geminux-apply-wallpaper: geminux-themes executable not found\n' >&2
exit 1
fi
case "${1:-}" in
""|--restore)
exec "$BIN" --restore-wallpaper
;;
*)
exec "$BIN" --apply-wallpaper "$@"
;;
esac