From f73040a0be419f16c983800eb4f550f80be62be4 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Thu, 26 Nov 2026 11:40:08 +0200 Subject: [PATCH] docs: enforce sentence case and remove Geminux references --- README.md | 22 +++++++++++----------- docs/ARCHITECTURE.md | 8 ++++---- docs/KEYBINDINGS.md | 34 +++++++++++++++++----------------- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 304a6ce..e77d10a 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,31 @@ # ANODE — A Nicely Optimized Desktop Environment -ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment adapted from [Geminux](../geminux) for **Linux, FreeBSD, OpenBSD, and NetBSD**. It aims for low memory footprint, zero busy-polling daemons, unified `.xth` theming across every toolkit, first-class XEmbed/EWMH systray integration, fractional DPI scaling, and optional touch / virtual keyboard support. +ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment for **Linux, FreeBSD, OpenBSD, and NetBSD**. It aims for low memory footprint, zero busy-polling daemons, unified `.xth` theming across every toolkit, first-class XEmbed/EWMH systray integration, fractional DPI scaling, and optional touch / virtual keyboard support. -## Key Features +## Key features -- **Patched Window & Core X11 Stack**: +- **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`, `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, `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. -- **Unified `.xth` Theme & Fractional DPI Scaling Engine**: +- **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. -- **GemUI Toolkit (`libgemui`) & Desktop Utilities**: +- **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. - - `anode-display`: Native `libXrandr` output/mode/rotation control, brightness slider, fractional scale selector (`0.50x–4.00x` + `Auto EDID`), and touch-mode toggle. + - `anode-display`: Native `libXrandr` output/mode/rotation control, brightness slider, fractional scale selector (`0.50x–4.00x` + auto EDID), and touch-mode toggle. - `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-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-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**: +- **Zero-poll event daemons**: - `anode-statusd`: `poll()` + self-pipe + Linux `NETLINK_ROUTE` / BSD `PF_ROUTE` link watcher + minute-aligned timer. - `anode-touchd`: XI2 multitouch edge-swipe gesture recognizer. - `anode-powerd`: Idle dim / lock / suspend policy daemon (`XScreenSaverQueryInfo` when available). -- **gtkTtk 0.9 Port**: +- **gtkTtk 0.9 port**: - Native GTK2-backed Ttk/Tkinter widget theme with full `[0.5, 4.0]` fractional DPI scaling and BSD library paths. ## Dependencies @@ -33,7 +33,7 @@ ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment adapt - **Build-time**: POSIX `make`, C11/C99 compiler (`cc`), `pkg-config`, X11 development headers (`x11`, `xext`, `xft`, `xinerama`, `xrandr`, `xfixes`, `xi`, `xtst`, optionally `xscrnsaver`), `fontconfig`, `freetype2`, `harfbuzz`, `cairo`, `pango`, `pangoxft`, `pangocairo`, and `libcrypt` (`-lcrypt` where separate). Optional for `gtkTtk`: C++ compiler, `gtk+-2.0`, `tcl`, `tk`, and Tk private `ttkTheme.h`. - **Runtime (optional tools auto-detected)**: `xrdb`, `xrandr`, `xsettingsd`, `dunst`, `notify-send`, `scrot`/`import`/`maim`, `wpctl`/`pactl`/`amixer`/`sndioctl`, `nmcli`/`wpa_cli`, `bluetoothctl`, `playerctl`/`mpc`, `chronyc`, `doas`/`sudo`/`pkexec`, and **Fira Code** + **DejaVuSansM Nerd Font**. -## Build & Install +## Build & install ```sh # Build all core targets (uses WITH_GTKTTK=auto by default) @@ -46,7 +46,7 @@ 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`). -## Documentation & Tests +## Documentation & tests - [Architecture](docs/ARCHITECTURE.md) - [Keybindings](docs/KEYBINDINGS.md) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 1d95b50..7e67527 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -1,6 +1,6 @@ -# ANODE Architecture +# ANODE architecture -## Component Map +## Component map - `Makefile` & `scripts/detect-env.sh`: Strict `.POSIX:` single build orchestration probing OS headers, `-lcrypt` vs ``, `-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`), input validators (`anode_dns_valid.h`, `anode_tz_valid.h`), CLI output parsers (`anode_audio_parse.h`, `anode_wifi_list.h`, `anode_bt_list.h`), and power policy (`anode_power_policy.h`). @@ -11,7 +11,7 @@ - `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 and strict POSIX `/bin/sh` synchronization scripts. -## Fractional DPI Multi-Toolkit Contract +## Fractional DPI multi-toolkit contract For a user or EDID-detected scale `S` clamped to `[0.50, 4.00]`: @@ -21,7 +21,7 @@ For a user or EDID-detected scale `S` clamped to `[0.50, 4.00]`: - **Qt5 / Qt6**: `QT_AUTO_SCREEN_SCALE_FACTOR=0`, `QT_ENABLE_HIGHDPI_SCALING=1`, `QT_SCALE_FACTOR_ROUNDING_POLICY=PassThrough`, `QT_SCALE_FACTOR=S`, `QT_FONT_DPI=96`, with synced palettes in both `~/.config/qt5ct/` and `~/.config/qt6ct/`. - **Tk / Tkinter (`gtkTtk`)**: `*TkTheme: gtkTtk`, Tk scaling normalized against `ANODE_SCALE` / `Xft.dpi`, using `Fira Code`. -## First-Class Systray & EWMH Workarea Struts +## First-class systray & EWMH workarea struts In `src/dwm/dwm.c`: 1. Acquires screen-specific `_NET_SYSTEM_TRAY_S` using a 32-bit ARGB `TrueColor` visual (when available, falling back cleanly to screen default visual) and publishes `_NET_SYSTEM_TRAY_VISUAL` and `_NET_SYSTEM_TRAY_ORIENTATION = 0`. diff --git a/docs/KEYBINDINGS.md b/docs/KEYBINDINGS.md index 75768f2..62ff823 100644 --- a/docs/KEYBINDINGS.md +++ b/docs/KEYBINDINGS.md @@ -1,8 +1,8 @@ -# ANODE Keybindings & Touch Gestures +# ANODE keybindings & touch gestures Default `MODKEY` is `Mod4` (`Super` / `Win`). -## Window Management (`dwm`) +## Window management (`dwm`) | Binding | Action | |---|---| @@ -17,8 +17,8 @@ Default `MODKEY` is `Mod4` (`Super` / `Win`). | `Mod4 + Shift + c` / `Mod4 + Shift + q` | Close focused window | | `Mod4 + Shift + Space` | Toggle floating mode for focused window | | `Mod4 + b` | Toggle DWM status & systray bar | -| `Mod4 + F1` / `F2` / `F3` / `F4` | Select layout: Tile (`[]=`), Monocle (`[M]`), Float (`><>`), Grid (`###`) | -| `Mod4 + m` / `f` / `g` | Monocle / Floating / Grid layout | +| `Mod4 + F1` / `F2` / `F3` / `F4` | Select layout: tile (`[]=`), monocle (`[M]`), float (`><>`), grid (`###`) | +| `Mod4 + m` / `f` / `g` | Monocle / floating / grid layout | | `Mod4 + 1..5` | Switch to tag `1..5` | | `Mod4 + Shift + 1..5` | Move focused window to tag `1..5` | | `Mod4 + Tab` | Toggle previous tag | @@ -27,31 +27,31 @@ Default `MODKEY` is `Mod4` (`Super` / `Win`). | `Mod4 + Shift + r` | Reload `.Xresources` / theme / DPI scale | | `Mod4 + Ctrl + Shift + q` | Quit DWM | -## Utilities & Multimedia Keys +## Utilities & multimedia keys -| Binding / Key | Action | +| Binding / key | Action | |---|---| -| `Mod4 + c` / `XF86Tools` / `XF86PowerDown` | Control Center & Power (`anode-power`) | +| `Mod4 + c` / `XF86Tools` / `XF86PowerDown` | Control center & power (`anode-power`) | | `Mod4 + n` / `XF86WLAN` | Network, Wi-Fi, Bluetooth & DNS (`anode-net`) | -| `Mod4 + a` / `XF86Option` | Audio Mixer & Profiles (`anode-audio`) | -| `Mod4 + d` | Display, XRandR & Fractional Scaling (`anode-display`) | -| `Mod4 + w` | Date & Timezone (`anode-datetime`) | -| `Mod4 + t` | Themes & Typography (`anode-themes`) | -| `Mod4 + v` / `XF86Keyboard` | Toggle Virtual Keyboard (`anode-vkbd`) | -| `Mod4 + Shift + l` / `XF86ScreenSaver` | Lock Screen (`anode-lock`) | +| `Mod4 + a` / `XF86Option` | Audio mixer & profiles (`anode-audio`) | +| `Mod4 + d` | Display, XRandR & fractional scaling (`anode-display`) | +| `Mod4 + w` | Date & timezone (`anode-datetime`) | +| `Mod4 + t` | Themes & typography (`anode-themes`) | +| `Mod4 + v` / `XF86Keyboard` | Toggle virtual keyboard (`anode-vkbd`) | +| `Mod4 + Shift + l` / `XF86ScreenSaver` | Lock screen (`anode-lock`) | | `Print` / `Shift+Print` / `Ctrl+Print` | Root / focused window screenshot (`anode-media-key`) | | `XF86AudioRaiseVolume` / `LowerVolume` / `Mute` | Output volume ±5% / mute + OSD | | `XF86AudioMicMute` / `AudioRecord` | Toggle microphone mute + OSD | | `XF86AudioPlay` / `Pause` / `Prev` / `Next` / `Stop` | Media playback control (`playerctl`/`mpc`/`mpv`) | | `XF86MonBrightnessUp` / `Down` | Display backlight ±10% + OSD | -| `XF86UWB` / `XF86RFKill` | Toggle Airplane Mode | +| `XF86UWB` / `XF86RFKill` | Toggle airplane mode | | `XF86Sleep` | Suspend system (`anode-power-ctl suspend`) | -## Edge Touch Gestures (`anode-touchd`) +## Edge touch gestures (`anode-touchd`) -| Swipe Gesture | Action | +| Swipe gesture | Action | |---|---| | Top edge swipe down | Launch `anode-launcher` | | Bottom edge swipe up | Toggle virtual keyboard (`anode-vkbd`) | -| Right edge swipe left | Open Control Center (`anode-power`) | +| Right edge swipe left | Open control center (`anode-power`) | | Left edge swipe right | Cycle focused window |