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:
1 parent
6fcc263256
commit
09c1e2ad36
32 files changed
+2852
-304
No files matched your search
@@ -58,6 +58,22 @@ enum {
|
||||
WORK_BT_REM,
|
||||
};
|
||||
|
||||
static void reapply_saved_wallpaper(void) {
|
||||
const char *xdg = getenv("XDG_CONFIG_HOME");
|
||||
const char *home = getenv("HOME");
|
||||
char conf[560];
|
||||
if (xdg && xdg[0]) {
|
||||
snprintf(conf, sizeof(conf), "%s/geminux/wallpaper.conf", xdg);
|
||||
} else {
|
||||
snprintf(conf, sizeof(conf), "%s/.config/geminux/wallpaper.conf",
|
||||
(home && home[0]) ? home : "/home/user");
|
||||
}
|
||||
if (access(conf, R_OK) == 0) {
|
||||
const char *wpv[] = {"geminux-apply-wallpaper", "--restore", NULL};
|
||||
gemui_spawn_detached(wpv);
|
||||
}
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
char col1[128];
|
||||
char col2[96];
|
||||
@@ -1662,6 +1678,7 @@ static void on_ptr(gemui_app_t *app, int type, int x, int y, unsigned int btn, v
|
||||
const char *argv[] = {"xrandr", "--output", "HDMI-1", st->hdmi_on ? "--off" : "--auto", NULL};
|
||||
gemui_run_cmd_timeout(argv, NULL, 0, 2000);
|
||||
st->hdmi_on = !st->hdmi_on;
|
||||
reapply_saved_wallpaper();
|
||||
refresh_tab(st);
|
||||
}
|
||||
} else if (hit->id == HIT_ACTION) {
|
||||
@@ -1700,6 +1717,7 @@ static void on_ptr(gemui_app_t *app, int type, int x, int y, unsigned int btn, v
|
||||
} else if (hit->val == 4) {
|
||||
const char *argv[] = {"xrandr", "--output", "HDMI-1", "--same-as", "DSI-1", NULL};
|
||||
gemui_run_cmd_timeout(argv, NULL, 0, 2000);
|
||||
reapply_saved_wallpaper();
|
||||
refresh_tab(st);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user