docs: document session switching, scaling, GTK theming, XDG launcher, status telemetry, and power policy

This commit is contained in:
Luxferre committed 2026-11-26 14:46:03 +02:00
1 parent 07d9134d2d
commit d351265623
5 files changed
+56 -33

No files matched your search

+11 -11
View File
@@ -5,12 +5,12 @@ ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment for *
## Key features
- **Patched window & core X11 stack**:
- **DWM (`6.5-anode`)**: Pango/HarfBuzz status & title bar (`Fira Code` + `DejaVuSansM Nerd Font`), first-class 32-bit ARGB XEmbed systray (`_NET_SYSTEM_TRAY_S<screen>`, `XEMBED_INFO` state, empty-tray unmap, `ReparentNotify` undocking, multi-monitor relocation), EWMH dock struts (`_NET_WM_WINDOW_TYPE_DOCK`, `_NET_WM_STRUT_PARTIAL`, `_NET_WORKAREA`), per-tag/grid layouts (`[]=`, `[M]`, `><>`, `###`), clickable bar regions, `Super_L` quick-tap support, `ANODE WM` EWMH identity, ICCCM `WM_S<screen>` `--replace` handoff, `SIGHUP` live restart, and `SIGUSR1`/`XA_RESOURCE_MANAGER` live theme & DPI reload.
- **dmenu (`5.3-anode`)**: Pango/HarfBuzz rendering, fuzzy matching, touch/pointer navigation, XFixes/XI2 pointer auto-hiding, dynamic `.Xresources` & fractional scale sizing.
- **st (`0.9.2-anode`)**: HarfBuzz programming ligatures (`Fira Code`), dirty-cell rendering cache, focus-gated cursor blink, `.Xresources` + `SIGUSR1` live reload, portable Linux/BSD PTY handling.
- **DWM (`6.5-anode`)**: Pango/HarfBuzz status & title bar (`Fira Code` + `DejaVuSansM Nerd Font`) with a vector 3-bar launcher button (no Nerd Font icon dependency), first-class 32-bit ARGB XEmbed systray (`_NET_SYSTEM_TRAY_S<screen>`, `XEMBED_INFO` state, empty-tray unmap, `ReparentNotify` undocking, multi-monitor relocation), EWMH dock struts (`_NET_WM_WINDOW_TYPE_DOCK`, `_NET_WM_STRUT_PARTIAL`, `_NET_WORKAREA`), per-tag/grid layouts (`[]=`, `[M]`, `><>`, `###`), clickable bar regions, `Super_L` quick-tap support, `ANODE WM` EWMH identity, ICCCM `WM_S<screen>` `--replace` handoff, `SIGHUP` live restart, and `SIGUSR1`/`XA_RESOURCE_MANAGER` live theme & DPI reload with environment/cursor propagation.
- **dmenu (`5.3-anode`)**: Pango/HarfBuzz rendering, fuzzy matching, touch/pointer navigation, XFixes/XI2 pointer auto-hiding, dynamic `.Xresources` & fractional scale sizing (`-l 0` full-height row fill and exact `-l N` row height), and `anode-launcher` XDG + Flatpak desktop entry integration (`--list`, symlinks, `[Desktop Action ...]` sub-entries, localization, `TryExec`, `Path=`, `Terminal=`, and `DBusActivatable=`).
- **st (`0.9.2-anode`)**: HarfBuzz programming ligatures (`Fira Code`), dirty-cell rendering cache, focus-gated cursor blink, explicit `St.font` override precedence with `~/.config/anode/Xresources.local`, live `Xft.dpi` Fontconfig resolution + `SIGUSR1` reload, and portable Linux/BSD PTY handling.
- **Unified `.xth` theme & fractional DPI scaling engine**:
- 22 normalized 96-DPI `.xth` themes (`data/themes/*.xth`) centered on `Fira Code` with ligatures.
- `anode-apply-scale` & `anode-apply-theme` synchronize `.Xresources`, `xrdb`, `dwm`, `dmenu`, `st`, `libgemui`, `anode-vkbd`, `dunst`, GTK-2, GTK-3, GTK-4 / `libadwaita`, `xsettingsd`, Qt5 (`qt5ct`), Qt6 (`qt6ct`), Kvantum, and Tk (`gtkTtk`) without double-scaling.
- `anode-apply-scale` & `anode-apply-theme` treat `scale.conf` as authoritative over stale session environment variables and synchronize `.Xresources`, `xrdb`, `dwm`, `dmenu`, `st`, `libgemui`, `anode-vkbd`, `dunst` (`scale = 1` + pixel font sizing), GTK-2, GTK-3, GTK-4 / `libadwaita` (built-in Adwaita/Default `resource:///...` inheritance with color-only overrides and dark/light auto-detection), `xsettingsd` (with discrete Xcursor size tiers), Qt5 (`qt5ct`), Qt6 (`qt6ct`), Kvantum, and Tk (`gtkTtk`) without double-scaling.
- **GemUI toolkit (`libgemui`) & desktop utilities**:
- `anode-net`: Wi-Fi (`nmcli` / `wpa_cli` / BSD `ifconfig`), POSIX `getifaddrs` interfaces, Bluetooth (`bluetoothctl`), and DNS presets/custom nameservers (`anode-dnsctl`).
- `anode-audio`: PipeWire (`wpctl`), PulseAudio (`pactl`), ALSA (`amixer`), OpenBSD `sndioctl`, and OSS audio mixer & profile/stream control.
@@ -18,17 +18,17 @@ ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment for *
- `anode-datetime`: Live clock, NTP status (`chronyc`/`timedatectl`), IANA timezone search & setter (`anode-tzctl`).
- `anode-power`: Battery/AC telemetry (Linux sysfs, FreeBSD `sysctl`, OpenBSD `apm`), brightness & volume sliders, power profiles, utility launcher grid, and lock / suspend / hibernate / reboot / power off actions (`anode-power-ctl`).
- `anode-themes`: Interactive `.xth` theme switcher with live color swatches and `Fira Code` ligature preview.
- `anode-lock`: Fullscreen X11 screen locker with `anode-checkpw` (`shadow.h` / BSD `getpwnam`).
- `anode-lock`: Fullscreen X11 screen locker with `anode-checkpw` (`shadow.h` / BSD `getpwnam`, `/sbin/unix_chkpwd` non-root fallback, and root-only `chmod 4755` installation in `Makefile`).
- `anode-media-key`: Multimedia key dispatcher for volume, mic mute, brightness, MPRIS/MPD/mpv media playback, screenshots, airplane toggle, suspend, and virtual keyboard toggling.
- `anode-vkbd`: Optional EWMH dock multi-layer touch virtual keyboard (`QWERTY`, `Shift`, `Sym`, `Nav`) injecting XTest keystrokes without stealing focus.
- **Zero-poll event daemons**:
- `anode-statusd`: `poll()` + self-pipe + XKB group/keymap events (text-only lowercase layout indicator left of datetime) + Linux `NETLINK_ROUTE` / BSD `PF_ROUTE` link watcher + minute-aligned timer.
- **Event-driven status & policy daemons**:
- `anode-statusd`: `poll()` + self-pipe + XKB group/keymap events (text-only lowercase layout indicator left of datetime) + CPU/RAM usage telemetry + minute-aligned timer.
- `anode-touchd`: XI2 multitouch edge-swipe gesture recognizer.
- `anode-powerd`: Idle dim / lock / suspend policy daemon (`XScreenSaverQueryInfo` when available).
- `anode-powerd`: Idle dim / lock / suspend policy daemon (`XScreenSaverQueryInfo` when available; defaults `5 m` dim with `max(0.35, 45%)` floor, `10 m` lock, `30 m` battery suspend, `~/.config/anode/power.conf` overrides, and brightness restore on wake/exit).
- **gtkTtk 0.9 port**:
- Native GTK2-backed Ttk/Tkinter widget theme with full `[0.5, 4.0]` fractional DPI scaling and BSD library paths.
- **Session-specific autostart**:
- `anode-autostart`: i3-style `exec`, `exec_once`, `exec_always`, `--no-startup-id`, and `include` directives, per-profile `autostart.<profile>` files, `autostart.d/` drop-ins, and `ANODE`-filtered XDG `.desktop` entries wired into `anode-session` and DWM reload/restart.
- `anode-autostart`: i3-style `exec`, UID- and `XDG_SESSION_ID`/D-Bus-session-aware `exec_once`, `exec_always`, `--no-startup-id`, and `include` directives, per-profile `autostart.<profile>` files, `autostart.d/` drop-ins, and `ANODE`-filtered XDG `.desktop` entries wired into `anode-session` and DWM reload/restart.
## Dependencies
@@ -46,11 +46,11 @@ make PREFIX=/opt/anode CC=clang WITH_GTKTTK=1
make DESTDIR=/tmp/stage PREFIX=/usr/local install
```
Start ANODE from `.xinitrc` (`exec /usr/local/bin/anode-session`) or via a display manager selecting the installed `ANODE` XSession (`PREFIX/share/xsessions/anode.desktop`). Passing `--profile NAME` (or setting `ANODE_SESSION_PROFILE`) selects a session profile for autostart.
Start ANODE from `.xinitrc` (`exec /usr/local/bin/anode-session`) or via a display manager selecting the installed `ANODE` XSession (`XSESSIONSDIR/anode.desktop`, default `PREFIX/share/xsessions/anode.desktop`; pass `XSESSIONSDIR=/usr/share/xsessions` when installing into system display managers such as LightDM). Passing `--profile NAME` (or setting `ANODE_SESSION_PROFILE`) selects a session profile for autostart.
## Live session replacement & desktop identity
Run `anode-replace` inside any active X11 session to replace the running window manager or desktop environment live without logging out or closing open windows (pass `--keep-panels` to retain third-party panels and daemons). `anode-replace` and `anode-session` scrub conflicting DE variables, export `XDG_CURRENT_DESKTOP=ANODE`, and `dwm` advertises `_NET_WM_NAME = "ANODE WM"` so system tools such as `fastfetch` report `Desktop Environment: ANODE` and `Window Manager: ANODE WM (X11)` instead of `dwm`. See [docs/SESSION.md](docs/SESSION.md) for full replacement, identity, and XKB status indicator details.
Run `anode-replace` inside a running session to switch to ANODE cleanly. When the active window manager (such as `i3`) is the direct session child of a display manager (for instance LightDM), `anode-replace` detects the session leader so it does not tear down the X server and trigger a logout/re-login; use `sudo make XSESSIONSDIR=/usr/share/xsessions install` followed by `anode-replace --switch-session` (or pass `--keep-panels` / `--force` where appropriate). Inside ANODE itself or session-managed DEs, `anode-replace` performs a live ICCCM `WM_S<screen>` handoff (falling back to `_NET_WM_PID`), scrubs conflicting DE variables, exports `XDG_CURRENT_DESKTOP=ANODE`, and `dwm` advertises `_NET_WM_NAME = "ANODE WM"` so system tools such as `fastfetch` report `Desktop Environment: ANODE` and `Window Manager: ANODE WM (X11)` instead of `dwm`. See [docs/SESSION.md](docs/SESSION.md) for full replacement, identity, and XKB status indicator details.
## Session autostart