Fix theme apply timeout and add full HiDPI scaling for gtkTtk and GTK2

This commit is contained in:
Luxferre committed 2026-11-25 22:11:12 +02:00
1 parent 983d529ec3
commit 3ea7d35aba
28 files changed
+919 -299

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ Geminux combines a custom-patched Linux `7.3.5` kernel, pure-Linux MTK flasher,
- `dwm` with Pango/HarfBuzz multi-font bar (`drw.c`), EWMH/XEmbed system tray, touch-friendly `>= 68px` status bar, `Mod4 = Fn+Alt` + one-shot `Super_L` tap-latch, `Fn+F` (`XF86XK_UWB`/`XF86XK_RFKill`) hardware Airplane Mode binding, `SIGHUP` self-reexec, and `SIGUSR1` `.Xresources` reload.
- `dmenu` with Pango/HarfBuzz, dynamic full-screen-height item rows (`68px` touch rows), and mouse/touch click selection, paired with `geminux-launcher` pinning the 11 GUI apps alongside `Webarchy Browser`, `Bantam AI agent`, and `Lynx Web Browser` in `st` (and wrapping `Terminal=true` `.desktop` entries in `st -e`).
- **Zero-Rust notifications**: `dunst v1.12.2` compiled with `WAYLAND=0 DUNSTIFY=0` and custom pure-C PNG (`libpng` + Cairo) / JPEG (`libjpeg-turbo`) icon loader replacing `gdk-pixbuf` ([src/dunst-notify/](file:///home/lux/proj/geminux/src/dunst-notify/)), paired with a lightweight GDBus `notify-send` / `dunstify`.
- **Unified desktop, GTK2/3/4, Qt5/6 & Tk (`gtkTtk`) theming**: Switching `.xth` palettes via `geminux-themes` or `geminux-apply-theme` updates `~/.Xresources`, `dunstrc` (`geminux-sync-dunst-theme`), and via `geminux-sync-gtk-theme` generates a light- or dark-based `Geminux-<Theme>` theme across GTK2 (`gtk-2.0/gtkrc`, `~/.gtkrc-2.0`), GTK3 (`gtk-3.0/gtk.css`, `~/.config/gtk-3.0/{settings.ini,gtk.css}`), GTK4/`libadwaita` (`gtk-4.0/gtk.css`, `~/.config/gtk-4.0/{settings.ini,gtk.css}` with `@define-color` and `:root` custom variables plus `dconf`-backed `gsettings` `color-scheme`), `xsettingsd` (`~/.config/xsettingsd/xsettingsd.conf`), Qt6 (`~/.config/qt6ct/{qt6ct.conf,colors/Geminux-<Theme>.conf}` 21-role `QPalette`), and Kvantum (`~/.config/Kvantum/Geminux/Geminux.kvconfig`) before merging `~/.Xresources` via `xrdb`. [10-geminux-env.sh](file:///home/lux/proj/geminux/overlay/rootfs/etc/profile.d/10-geminux-env.sh) sets `ADW_DISABLE_PORTAL=1` (so `libadwaita` binds directly to `dconf`/`gsettings` `color-scheme` on portal-free X11 with live updates) and `QT_QPA_PLATFORMTHEME=qt6ct:gtk3` (routing Qt6 to `qt6ct-style` and Qt5 dialogs to `libqgtk3.so`, with Kvantum configs ready for `QT_STYLE_OVERRIDE=kvantum`), `*TkTheme: gtkTtk` auto-loads preinstalled `gtkTtk 0.9` in Tk/Ttk/Tkinter apps against `~/.gtkrc-2.0` (with zero-poll X11 `RESOURCE_MANAGER` `PropertyNotify` live reloading across [src/gtkTtk/](file:///home/lux/proj/geminux/src/gtkTtk/) and pure-X11 XImage blitting avoiding `gdk-pixbuf-xlib`), alongside `SIGUSR1` for live `dwm`, `st`, `webarchy`, and `libgemui` clients. Preinstalled `tcl` (`tcl-lib` + `tcl-tls`) and `tk` run cleanly on the same stack.
- **Unified desktop, GTK2/3/4, Qt5/6 & Tk (`gtkTtk`) theming**: Switching `.xth` palettes via `geminux-themes` or `geminux-apply-theme` updates `~/.Xresources`, `dunstrc` (`geminux-sync-dunst-theme`), and via `geminux-sync-gtk-theme` generates a light- or dark-based `Geminux-<Theme>` theme across GTK2 (`gtk-2.0/gtkrc`, `~/.gtkrc-2.0`), GTK3 (`gtk-3.0/gtk.css`, `~/.config/gtk-3.0/{settings.ini,gtk.css}`), GTK4/`libadwaita` (`gtk-4.0/gtk.css`, `~/.config/gtk-4.0/{settings.ini,gtk.css}` with `@define-color` and `:root` custom variables plus `dconf`-backed `gsettings` `color-scheme`), `xsettingsd` (`~/.config/xsettingsd/xsettingsd.conf`), Qt6 (`~/.config/qt6ct/{qt6ct.conf,colors/Geminux-<Theme>.conf}` 21-role `QPalette`), and Kvantum (`~/.config/Kvantum/Geminux/Geminux.kvconfig`) before merging `~/.Xresources` via `xrdb`. [10-geminux-env.sh](file:///home/lux/proj/geminux/overlay/rootfs/etc/profile.d/10-geminux-env.sh) sets `ADW_DISABLE_PORTAL=1` (so `libadwaita` binds directly to `dconf`/`gsettings` `color-scheme` on portal-free X11 with live updates) and `QT_QPA_PLATFORMTHEME=qt6ct:gtk3` (routing Qt6 to `qt6ct-style` and Qt5 dialogs to `libqgtk3.so`, with Kvantum configs ready for `QT_STYLE_OVERRIDE=kvantum`), GTK2 writes DPI-scaled `xthickness`/`ythickness` and style metrics (`192 DPI` / `2x`) alongside `*TkTheme: gtkTtk` to auto-load preinstalled `gtkTtk 0.9` in Tk/Ttk/Tkinter apps against `~/.gtkrc-2.0` (with DPI-scaled widget geometry, negative-pixel font heights matched to `theme.baseFontSize`, zero-poll X11 `RESOURCE_MANAGER` `PropertyNotify` live reloading across [src/gtkTtk/](file:///home/lux/proj/geminux/src/gtkTtk/), and pure-X11 XImage blitting avoiding `gdk-pixbuf-xlib`), alongside `SIGUSR1` for live `dwm`, `st`, `webarchy`, and `libgemui` clients. Preinstalled `tcl` (`tcl-lib` + `tcl-tls`) and `tk` run cleanly on the same stack.
- **Webarchy & pure-C `gdk-pixbuf`**: [src/webarchy/webarchy.cpp](file:///home/lux/proj/geminux/src/webarchy/webarchy.cpp) provides a standalone C++20 `GTK3` + `WebKit2GTK-4.1` multi-tab browser adapted for the `2160x1080` ultrawide display (`1080x506` logical @ `GDK_SCALE=2`) with a collapsible flush-right vertical tab bar, DPI-scaled `pt` CSS reloaded live from `~/.Xresources` via `SIGUSR1` (selecting the generated `Geminux-<Theme>` GTK3 theme and dark/light preference dynamically), persistent SQLite cookies/bookmarks under `~/.local/share/geminux/webarchy` and `~/.config/geminux/webarchy`, single-instance FIFO URL forwarding, and automatic CPU renderer fallback on WebProcess crash. [scripts/build-webarchy.sh](file:///home/lux/proj/geminux/scripts/build-webarchy.sh) also cross-compiles pure-C GNOME `gdk-pixbuf 2.42.12` (`-Dbuiltin_loaders=all`, zero `libglycin`/`librsvg`) so `gtk+3.0` and `gst-plugins-good` install cleanly without Rust, and [scripts/compile-gsettings-schemas.sh](file:///home/lux/proj/geminux/scripts/compile-gsettings-schemas.sh) compiles `/usr/share/glib-2.0/schemas/gschemas.compiled` for `WebKitNetworkProcess`.
- **Native media & `yt-dlp` stack**: Native Alpine Edge `mpv` (configured via [overlay/rootfs/etc/mpv/mpv.conf](file:///home/lux/proj/geminux/overlay/rootfs/etc/mpv/mpv.conf) for Panfrost X11 EGL, PipeWire/Pulse/ALSA, and `/tmp/geminux-mpv.sock` media-key IPC), `ffmpeg`/`ffprobe`, and `gst-libav` (for WebKit HTML5 media), paired with `mpg123`, `openmpt123`, `python3`/`py3-pip`, and `yt-dlp-core` + `yt-dlp-ejs-rt-quickjs` (`quickjs`, avoiding `deno`/`py3-cryptography`).