feat(theme,display,wm,power,make): add Anodized theme, editors, multi-monitor arrangement, power timeouts, bar compaction, and replace state preservation

- Replace deprecated AnodeDefault with dark-silvery Anodized default theme
- Add interactive theme editor, duplicator, and non-standard .xth importer to anode-themes (+ CLI --install)
- Fix multi-monitor dwm/lock/vkbd/EDID edge cases and integrate monitor arrangement + 15s revert into anode-display and anode-apply-display
- Gate anode-touchd behind WITH_TOUCHD=1 (keeping anode-vkbd unconditional) and add help/rebuild/install-touch/install-system targets to Makefile
- Add idle screen dim, lock, suspend, and suspend-on-AC timeout controls to anode-power and anode-display backed by power.conf + SIGUSR1
- Prevent lockscreen subtitle overflow and progressively compact status bar segments so focused window titles remain visible
- Preserve workspaces, active desktop, monitor state, floating/fullscreen states, and focus across anode-replace and restarts
This commit is contained in:
Luxferre committed 2026-11-27 08:31:35 +02:00
1 parent bb81541b42
commit 4ec3f59e02
40 files changed
+5843 -768

No files matched your search

+6 -6
View File
@@ -3,13 +3,13 @@
## Component map
- `Makefile` & `scripts/detect-env.sh`: Strict `.POSIX:` single build orchestration probing OS headers, `-lcrypt` vs `<crypt.h>`, `-lrt`, `-lutil`, `XScrnSaver`, and optional `gtk+-2.0`/`tcl`/`tk` headers cleanly into `build/flags.sh`.
- `src/common/`: Cross-Unix platform layer (`anode_plat.c`, `anode_plat.h`), `.Xresources` / EDID fractional scale helpers (`anode_scale.h`), CPU/memory parsers (`anode_sys_parse.h`), input validators (`anode_dns_valid.h`, `anode_tz_valid.h`), XKB layout parser (`anode_xkb_parse.h`), CLI output parsers (`anode_audio_parse.h`, `anode_wifi_list.h`, `anode_bt_list.h`), and power policy (`anode_power_policy.h`).
- `src/dwm/`, `src/dmenu/`, `src/st/`: Patched suckless X11 core using Pango/HarfBuzz (`Fira Code` ligatures), vector 3-bar hamburger launcher button in `dwm`, full-height `-l 0` mode in `dmenu`, `St.font` + live `Xft.dpi` Fontconfig resolution in `st`, `.Xresources` + `SIGUSR1` live reload, `anode_scale.h`, ICCCM `WM_S<screen>` `--replace` handoff (`exit 75` when yielded so `anode-session` holds the session), and `ANODE WM` EWMH identity.
- `src/libgemui/`: Shared library `libgemui.so` + `gemui.pc` providing double-buffered Cairo + Pango rendering (`theme.fontFace` `Fira Code` + `theme.iconFontFace` Nerd Font fallback), workarea-clamped responsive window sizing, `fullscreen_override` stacking guard (`VisibilityNotify`/`MapNotify`/`ConfigureNotify`) keeping `anode-lock` above the systray/bar while permitting `anode-vkbd`, hit tracking, touch-mode sizing (`gemui_touch_row_px`), self-pipe `SIGUSR1` + root `XA_RESOURCE_MANAGER` live reload, and non-blocking `poll()` loops.
- `src/apps/`: Desktop control panels and optional dock virtual keyboard (`anode-vkbd`) + multimedia dispatcher (`anode-media-key`).
- `src/daemons/`: Event-driven `poll()` + signal self-pipe daemons (`anode-statusd`, `anode-touchd`, `anode-powerd` with `power.conf` idle overrides) and narrowly-scoped privilege helpers (`anode-power-ctl`, `anode-dnsctl`, `anode-tzctl`, `anode-checkpw` with `/sbin/unix_chkpwd` fallback).
- `src/common/`: Cross-Unix platform layer (`anode_plat.c`, `anode_plat.h`), `.Xresources` / EDID fractional scale helpers (`anode_scale.h`), unified `.xth` theme parser/editor model (`anode_xth.h`), multi-monitor arrangement/profile helpers (`anode_display_cfg.h`), CPU/memory parsers (`anode_sys_parse.h`), input validators (`anode_dns_valid.h`, `anode_tz_valid.h`), XKB layout parser (`anode_xkb_parse.h`), CLI output parsers (`anode_audio_parse.h`, `anode_wifi_list.h`, `anode_bt_list.h`), and power policy (`anode_power_policy.h`).
- `src/dwm/`, `src/dmenu/`, `src/st/`: Patched suckless X11 core using Pango/HarfBuzz (`Fira Code` ligatures), dark-silvery `Anodized` compile-time fallback palette, vector 3-bar hamburger launcher button in `dwm`, XRandR + Xinerama primary-first monitor ordering and unplug client rescue in `dwm`, full-height `-l 0` mode in `dmenu`, `St.font` + live `Xft.dpi` Fontconfig resolution in `st`, `.Xresources` + `SIGUSR1` live reload, `anode_scale.h`, ICCCM `WM_S<screen>` `--replace` handoff (`exit 75` when yielded so `anode-session` holds the session), and `ANODE WM` EWMH identity.
- `src/libgemui/`: Shared library `libgemui.so` + `gemui.pc` providing double-buffered Cairo + Pango rendering (`theme.fontFace` `Fira Code` + `theme.iconFontFace` Nerd Font fallback), automatic luminance-aware dark/light button text contrast, workarea-clamped responsive window sizing, full virtual-root spanning + primary monitor alignment (`gemui_primary_monitor_rect`) + RandR resize tracking and stacking guard (`VisibilityNotify`/`MapNotify`/`ConfigureNotify`) keeping `anode-lock` over all displays while permitting `anode-vkbd`, X11 clipboard paste (`gemui_clipboard_get`), hit tracking, touch-mode sizing (`gemui_touch_row_px`), self-pipe `SIGUSR1` + root `XA_RESOURCE_MANAGER` live reload, and non-blocking `poll()` loops.
- `src/apps/`: Desktop control panels (including the integrated `anode-themes` editor/`.xth` importer and `anode-display` multi-monitor 2D arrangement canvas with 15 s revert), monitor-scoped dock virtual keyboard (`anode-vkbd`), and multimedia dispatcher (`anode-media-key`).
- `src/daemons/`: Event-driven `poll()` + signal self-pipe daemons (`anode-statusd`, `anode-powerd` with `power.conf` idle overrides, plus opt-in `anode-touchd` built/installed only when `WITH_TOUCHD=1`) and narrowly-scoped privilege helpers (`anode-power-ctl`, `anode-dnsctl`, `anode-tzctl`, `anode-checkpw` with `/sbin/unix_chkpwd` fallback).
- `src/gtkTtk/`: Tk/Ttk native GTK-2 bridge (`libgtkTtk0.9.so` + `gtkTtk.tcl`) supporting full `[0.5, 4.0]` fractional scaling.
- `data/` & `scripts/`: 22 96-DPI `.xth` themes, `data/env.sh` XDG/Flatpak `XDG_DATA_DIRS` normalization, full-XDG `anode-launcher`, strict POSIX `/bin/sh` synchronization scripts, live session replacement (`anode-replace`), and i3-style session autostart management (`anode-autostart` + `data/autostart` template).
- `data/` & `scripts/`: 22 96-DPI `.xth` themes (defaulting to dark-silvery `Anodized.xth`, with deprecated `AnodeDefault` seamlessly falling back to `Anodized`), `data/env.sh` XDG/Flatpak `XDG_DATA_DIRS` normalization, full-XDG `anode-launcher`, strict POSIX `/bin/sh` synchronization scripts (including `anode-apply-display` for saved `$XDG_CONFIG_HOME/anode/displays.conf` layouts), live session replacement (`anode-replace`), and i3-style session autostart management (`anode-autostart` + `data/autostart` template).
## Fractional DPI multi-toolkit contract