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

+85 -62
View File
@@ -1,73 +1,96 @@
! Geminux Unified Theme: GeminuxHelio
theme.name: GeminuxHelio
! Geminux Unified Theme: Anodized (Obsidian & brushed silver, brass-amber highlight, Fira Code + Nerd Fonts)
theme.name: Anodized
theme.isDark: 1
theme.fontFace: Fira Code
theme.uiFontFace: Roboto
theme.iconFontFace: DejaVuSansM Nerd Font
theme.baseFontSize: 32
theme.gtkTheme: Geminux-Anodized
theme.qtTheme: Fusion
theme.iconTheme: Adwaita
*TkTheme: gtkTtk
theme.bgMain: #0f1419
theme.bgBar: #0b0e14
theme.bgHeader: #131922
theme.bgFooter: #0b0e14
theme.bgOverlay: #161d26
theme.bgAltEven: #121820
theme.bgAltOdd: #18202a
theme.bgInput: #0b0e14
theme.bgInputFocus: #1b2838
theme.bgButton: #1d2633
theme.bgSearch: #243040
theme.bgBubbleIn: #1b2632
theme.bgBubbleOut: #1c3244
theme.bgToast: #132230
Xft.dpi: 192
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xcursor.theme: default
Xcursor.size: 64
theme.fgMain: #e6e1cf
theme.fgBright: #ffffff
theme.fgMuted: #7b8898
theme.bgMain: #08090b
theme.bgBar: #0e1014
theme.bgHeader: #12151a
theme.bgFooter: #0b0d11
theme.bgOverlay: #171b22
theme.bgAltEven: #101318
theme.bgAltOdd: #14181f
theme.bgInput: #161a21
theme.bgInputFocus: #1e232c
theme.bgButton: #1c212a
theme.bgSearch: #191e27
theme.bgBubbleIn: #181d25
theme.bgBubbleOut: #252c38
theme.bgToast: #1c222b
theme.fgMain: #e4e8ee
theme.fgBright: #f5f7fa
theme.fgMuted: #89929f
theme.selBg: #38414f
theme.selFg: #f5f7fa
theme.accent: #cfd6e0
theme.accentAlt: #e5eaf0
theme.highlight: #e2bc72
theme.border: #2d3440
theme.divider: #20252f
theme.success: #79cf9c
theme.info: #9eb3c8
theme.warning: #e2bc72
theme.danger: #e07a7a
theme.dangerBg: #3f1d20
theme.selBg: #2b5278
theme.selFg: #ffffff
theme.accent: #59c2ff
theme.accentAlt: #ffb454
theme.highlight: #ff8f40
theme.border: #283444
theme.divider: #364559
theme.success: #7fd962
theme.info: #59c2ff
theme.warning: #ffb454
theme.danger: #f07178
theme.dangerBg: #4c1d24
dwm.borderpx: 4
dwm.font: Fira Code, DejaVuSansM Nerd Font 38px
dwm.background: #0e1014
dwm.foreground: #e4e8ee
dwm.border: #2d3440
dwm.selbackground: #38414f
dwm.selforeground: #f5f7fa
dwm.selborder: #cfd6e0
dwm.normbgcolor: #0e1014
dwm.normfgcolor: #e4e8ee
dwm.normbordercolor: #2d3440
dwm.selbgcolor: #38414f
dwm.selfgcolor: #f5f7fa
dwm.selbordercolor: #cfd6e0
dmenu.font: Fira Code, DejaVuSansM Nerd Font 40px
dmenu.background: #0b0e14
dmenu.foreground: #e6e1cf
dmenu.selbackground: #2b5278
dmenu.selforeground: #ffffff
dmenu.outbackground: #243040
dmenu.outforeground: #ffffff
dmenu.highlight: #ffb454
dwm.font: Fira Code, DejaVuSansM Nerd Font 38px
dwm.background: #0b0e14
dwm.foreground: #e6e1cf
dwm.border: #283444
dwm.selbackground: #2b5278
dwm.selforeground: #ffffff
dwm.selborder: #59c2ff
dwm.normbgcolor: #0b0e14
dwm.normbordercolor: #283444
dwm.normfgcolor: #e6e1cf
dwm.selbgcolor: #2b5278
dwm.selbordercolor: #59c2ff
dwm.selfgcolor: #ffffff
dwm.borderpx: 4
dmenu.background: #12151a
dmenu.foreground: #e4e8ee
dmenu.selbackground: #38414f
dmenu.selforeground: #f5f7fa
dmenu.outbackground: #191e27
dmenu.outforeground: #cfd6e0
dmenu.highlight: #e2bc72
st.font: Fira Code:pixelsize=44:style=Regular:antialias=true:autohint=true
st.termname: xterm-256color
st.background: #0f1419
st.foreground: #e6e1cf
st.cursorColor: #59c2ff
Xft.dpi: 192
Xcursor.theme: default
Xcursor.size: 64
*TkTheme: gtkTtk
st.background: #08090b
st.foreground: #e4e8ee
st.cursorColor: #cfd6e0
st.revCursorColor: #08090b
st.color0: #08090b
st.color1: #d97878
st.color2: #79cf9c
st.color3: #e2bc72
st.color4: #8ba6c4
st.color5: #b39bc8
st.color6: #84b8be
st.color7: #d5dce4
st.color8: #5b6370
st.color9: #eb9494
st.color10: #96deb3
st.color11: #edd092
st.color12: #a6bdd6
st.color13: #cab5dc
st.color14: #a2cdd2
st.color15: #f5f7fa
@@ -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"