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
This commit is contained in:
Luxferre committed 2026-11-27 17:13:35 +02:00
1 parent 6fcc263256
commit 09c1e2ad36
32 files changed
+2852 -304

No files matched your search

@@ -108,6 +108,13 @@ if [ -n "${DISPLAY:-}" ] && command -v xrdb >/dev/null 2>&1; then
xrdb -nocpp -load "$HOME_DIR/.Xresources" >/dev/null 2>&1 || true
fi
WP_CONF="${XDG_CONFIG_HOME:-$HOME_DIR/.config}/geminux/wallpaper.conf"
if [ -n "${DISPLAY:-}" ] && [ -r "$WP_CONF" ] && grep -q '^USE_THEME_BG=1$' "$WP_CONF" 2>/dev/null; then
if command -v geminux-apply-wallpaper >/dev/null 2>&1; then
geminux-apply-wallpaper --restore >/dev/null 2>&1 || true
fi
fi
if [ -n "${DISPLAY:-}" ] && [ "${GEMINUX_NO_SIGNAL:-0}" != "1" ]; then
_pids="$( (ps -eo pid=,comm= 2>/dev/null || ps -ax -o pid=,comm= 2>/dev/null || true) | awk '
{
+34
View File
@@ -0,0 +1,34 @@
#!/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
+1
View File
@@ -32,6 +32,7 @@ LAUNCHER_LIST="
 Control Center|geminux-control
󰥔 Date & Timezone|geminux-datetime
 Themes|geminux-themes
󰸉 Wallpaper|geminux-themes --wallpaper
 Lock Screen|geminux-lock
󰤄 Suspend Now|doas /usr/bin/geminux-power-ctl suspend
"
+5
View File
@@ -60,6 +60,11 @@ if command -v geminux-sync-gtk-theme >/dev/null 2>&1; then
geminux-sync-gtk-theme --no-reload 2>/dev/null || true
fi
WP_CONF="${XDG_CONFIG_HOME:-$HOME_DIR/.config}/geminux/wallpaper.conf"
if [ -n "${DISPLAY:-}" ] && [ -r "$WP_CONF" ] && command -v geminux-apply-wallpaper >/dev/null 2>&1; then
geminux-apply-wallpaper --restore >/dev/null 2>&1 || true
fi
if command -v xset >/dev/null 2>&1; then
# Suspend and backlight blanking are managed event-driven by geminux-powerd.
xset s off -dpms 2>/dev/null || true
@@ -37,15 +37,15 @@ if [ -r "$XRES_FILE" ]; then
' "$XRES_FILE")"
fi
BG_MAIN="${X_bgMain:-#0f1419}"
BG_MAIN="${X_bgMain:-#08090b}"
BG_OVERLAY="${X_bgOverlay:-${X_bgHeader:-$BG_MAIN}}"
FG_MAIN="${X_fgMain:-#e6e1cf}"
FG_MAIN="${X_fgMain:-#e4e8ee}"
FG_BRIGHT="${X_fgBright:-$FG_MAIN}"
FG_MUTED="${X_fgMuted:-#7b8898}"
ACCENT="${X_accent:-${X_selBg:-#59c2ff}}"
BORDER="${X_border:-#283444}"
DANGER="${X_danger:-#f07178}"
DANGER_BG="${X_dangerBg:-#4c1d24}"
FG_MUTED="${X_fgMuted:-#89929f}"
ACCENT="${X_accent:-${X_selBg:-#cfd6e0}}"
BORDER="${X_border:-#2d3440}"
DANGER="${X_danger:-#e07a7a}"
DANGER_BG="${X_dangerBg:-#3f1d20}"
FONT_FACE="${X_fontFace:-Fira Code}"
BASE_SIZE="${X_baseFontSize:-32}"
+13 -13
View File
@@ -52,12 +52,12 @@ if [ -r "$XRES_FILE" ]; then
' "$XRES_FILE")"
fi
RAW_NAME="${X_theme_name:-GeminuxHelio}"
RAW_NAME="${X_theme_name:-Anodized}"
SAFE_NAME="$(printf '%s' "$RAW_NAME" | tr -cd 'A-Za-z0-9._-')"
[ -n "$SAFE_NAME" ] || SAFE_NAME="GeminuxHelio"
[ -n "$SAFE_NAME" ] || SAFE_NAME="Anodized"
GTK_THEME_NAME="Geminux-$SAFE_NAME"
BG_MAIN="${X_theme_bgMain:-#0f1419}"
BG_MAIN="${X_theme_bgMain:-#08090b}"
BG_BAR="${X_theme_bgBar:-$BG_MAIN}"
BG_HEADER="${X_theme_bgHeader:-$BG_MAIN}"
BG_FOOTER="${X_theme_bgFooter:-$BG_HEADER}"
@@ -68,21 +68,21 @@ BG_INPUT="${X_theme_bgInput:-$BG_MAIN}"
BG_BUTTON="${X_theme_bgButton:-$BG_ALT_EVEN}"
BG_INPUT_FOCUS="${X_theme_bgInputFocus:-$BG_BUTTON}"
BG_SEARCH="${X_theme_bgSearch:-$BG_BUTTON}"
FG_MAIN="${X_theme_fgMain:-#e6e1cf}"
FG_MAIN="${X_theme_fgMain:-#e4e8ee}"
FG_BRIGHT="${X_theme_fgBright:-$FG_MAIN}"
FG_MUTED="${X_theme_fgMuted:-#7b8898}"
SEL_BG="${X_theme_selBg:-#2b5278}"
SEL_FG="${X_theme_selFg:-#ffffff}"
FG_MUTED="${X_theme_fgMuted:-#89929f}"
SEL_BG="${X_theme_selBg:-#38414f}"
SEL_FG="${X_theme_selFg:-#f5f7fa}"
ACCENT="${X_theme_accent:-$SEL_BG}"
ACCENT_ALT="${X_theme_accentAlt:-$ACCENT}"
HIGHLIGHT="${X_theme_highlight:-$ACCENT}"
BORDER="${X_theme_border:-#283444}"
BORDER="${X_theme_border:-#2d3440}"
DIVIDER="${X_theme_divider:-$BORDER}"
SUCCESS="${X_theme_success:-#2ecc71}"
INFO="${X_theme_info:-#5dade2}"
WARNING="${X_theme_warning:-#e67e22}"
DANGER="${X_theme_danger:-#f07178}"
DANGER_BG="${X_theme_dangerBg:-#4c1d24}"
SUCCESS="${X_theme_success:-#79cf9c}"
INFO="${X_theme_info:-#9eb3c8}"
WARNING="${X_theme_warning:-#e2bc72}"
DANGER="${X_theme_danger:-#e07a7a}"
DANGER_BG="${X_theme_dangerBg:-#3f1d20}"
FONT_FACE="${X_theme_fontFace:-Fira Code}"
[ -n "$FONT_FACE" ] || FONT_FACE="Fira Code"