2026-11-26 11:34:53 +02:00
# ANODE — A Nicely Optimized Desktop Environment
2026-11-26 11:40:08 +02:00
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.
2026-11-26 11:34:53 +02:00
2026-11-26 11:40:08 +02:00
## Key features
2026-11-26 11:34:53 +02:00
2026-11-26 11:40:08 +02:00
- **Patched window & core X11 stack**:
2026-11-26 12:37:25 +02:00
- **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.
2026-11-26 11:34:53 +02:00
- **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.
2026-11-26 11:40:08 +02:00
- **Unified `.xth` theme & fractional DPI scaling engine**:
2026-11-26 11:34:53 +02:00
- 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.
2026-11-26 11:40:08 +02:00
- **GemUI toolkit (`libgemui` ) & desktop utilities**:
2026-11-26 11:34:53 +02:00
- `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.
2026-11-26 11:40:08 +02:00
- `anode-display` : Native `libXrandr` output/mode/rotation control, brightness slider, fractional scale selector (`0.50x– 4.00x` + auto EDID), and touch-mode toggle.
2026-11-26 11:34:53 +02:00
- `anode-datetime` : Live clock, NTP status (`chronyc` /`timedatectl` ), IANA timezone search & setter (`anode-tzctl` ).
2026-11-26 11:40:08 +02:00
- `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` ).
2026-11-26 11:34:53 +02:00
- `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.
2026-11-26 11:40:08 +02:00
- **Zero-poll event daemons**:
2026-11-26 12:37:25 +02:00
- `anode-statusd` : `poll()` + self-pipe + XKB layout group/keymap events + Linux `NETLINK_ROUTE` / BSD `PF_ROUTE` link watcher + minute-aligned timer.
2026-11-26 11:34:53 +02:00
- `anode-touchd` : XI2 multitouch edge-swipe gesture recognizer.
- `anode-powerd` : Idle dim / lock / suspend policy daemon (`XScreenSaverQueryInfo` when available).
2026-11-26 11:40:08 +02:00
- **gtkTtk 0.9 port**:
2026-11-26 11:34:53 +02:00
- Native GTK2-backed Ttk/Tkinter widget theme with full `[0.5, 4.0]` fractional DPI scaling and BSD library paths.
2026-11-26 11:55:17 +02:00
- **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.
2026-11-26 11:34:53 +02:00
## Dependencies
- **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` .
2026-11-26 11:55:17 +02:00
- **Runtime (optional tools auto-detected)**: `xrdb` , `xprop` , `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** .
2026-11-26 11:34:53 +02:00
2026-11-26 11:40:08 +02:00
## Build & install
2026-11-26 11:34:53 +02:00
```sh
# Build all core targets (uses WITH_GTKTTK=auto by default)
make
# Optional overrides:
make PREFIX = /opt/anode CC = clang WITH_GTKTTK = 1
make DESTDIR = /tmp/stage PREFIX = /usr/local install
```
2026-11-26 12:37:25 +02:00
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. To live-replace an already running X11 window manager or session without logging out, run `anode-replace` (pass `--keep-panels` to retain third-party panels/daemons).
2026-11-26 11:55:17 +02:00
## Session autostart
`anode-session` invokes `anode-autostart start` once DWM advertises `_NET_SUPPORTING_WM_CHECK` , seeding `~/.config/anode/autostart` from `PREFIX/share/anode/autostart` on first launch. Supported directives follow i3 conventions (`exec` , `exec_once` , `exec_always` , `--no-startup-id` , `include` ), alongside per-profile files (`~/.config/anode/autostart.<profile>` ), drop-in scripts or `.desktop` entries in `~/.config/anode/autostart.d/` , and `ANODE` -filtered XDG autostart entries. Pressing `Mod4 + Shift + r` or sending `SIGHUP` to DWM reloads `.Xresources` /theme/DPI and triggers `anode-autostart reload` (re-running `exec_always` entries). See [docs/AUTOSTART.md ](docs/AUTOSTART.md ) for full directive, profile, and XDG precedence details.
2026-11-26 11:34:53 +02:00
2026-11-26 11:40:08 +02:00
## Documentation & tests
2026-11-26 11:34:53 +02:00
2026-11-26 11:55:17 +02:00
- [Session autostart ](docs/AUTOSTART.md )
2026-11-26 11:34:53 +02:00
- [Architecture ](docs/ARCHITECTURE.md )
- [Keybindings ](docs/KEYBINDINGS.md )
Run verification suite (requires Python 3 and `Xvfb` for X11 integration checks):
```sh
make test
```