8.4 KiB
ANODE — A Nicely Optimized Desktop Environment
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
- Patched window & core X11 stack:
- 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_INFOstate, empty-tray unmap,ReparentNotifyundocking, 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_Lquick-tap support,ANODE WMEWMH identity, ICCCMWM_S<screen>--replacehandoff,SIGHUPlive restart, andSIGUSR1/XA_RESOURCE_MANAGERlive 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 0full-height row fill and exact-l Nrow height), andanode-launcherXDG + Flatpak desktop entry integration (--list, symlinks,[Desktop Action ...]sub-entries, localization,TryExec,Path=,Terminal=, andDBusActivatable=). - st (
0.9.2-anode): HarfBuzz programming ligatures (Fira Code, defaulting tosize=13scaled via liveXft.dpi), dirty-cell rendering cache, focus-gated cursor blink, explicitSt.fontoverride precedence with~/.config/anode/Xresources.local,SIGUSR1live reload, and portable Linux/BSD PTY handling.
- DWM (
- Unified
.xththeme & fractional DPI scaling engine:- 22 normalized 96-DPI
.xththemes (data/themes/*.xth) centered onFira Codewith ligatures. anode-apply-scale&anode-apply-themetreatscale.confas 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/Defaultresource:///...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.
- 22 normalized 96-DPI
- GemUI toolkit (
libgemui) & desktop utilities:anode-net: Wi-Fi (nmcli/wpa_cli/ BSDifconfig), POSIXgetifaddrsinterfaces, Bluetooth (bluetoothctl), and DNS presets/custom nameservers (anode-dnsctl).anode-audio: PipeWire (wpctl), PulseAudio (pactl), ALSA (amixer), OpenBSDsndioctl, and OSS audio mixer & profile/stream control.anode-display: NativelibXrandroutput/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, FreeBSDsysctl, OpenBSDapm), brightness & volume sliders, power profiles, utility launcher grid, and lock / suspend / hibernate / reboot / power off actions (anode-power-ctl).anode-themes: Interactive.xththeme switcher with live color swatches andFira Codeligature preview.anode-lock: Fullscreen X11 screen locker withanode-checkpw(shadow.h/ BSDgetpwnam,/sbin/unix_chkpwdnon-root fallback, and root-onlychmod 4755installation inMakefile).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.
- 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 (XScreenSaverQueryInfowhen available; defaults5 mdim withmax(0.35, 45%)floor,10 mlock,30 mbattery suspend,~/.config/anode/power.confoverrides, 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.
- Native GTK2-backed Ttk/Tkinter widget theme with full
- Session-specific autostart:
anode-autostart: i3-styleexec, UID- andXDG_SESSION_ID/D-Bus-session-awareexec_once,exec_always,--no-startup-id, andincludedirectives, per-profileautostart.<profile>files,autostart.d/drop-ins, andANODE-filtered XDG.desktopentries wired intoanode-sessionand DWM reload/restart.
Dependencies
- Build-time: POSIX
make, C11/C99 compiler (cc),pkg-config, X11 development headers (x11,xext,xft,xinerama,xrandr,xfixes,xi,xtst, optionallyxscrnsaver),fontconfig,freetype2,harfbuzz,cairo,pango,pangoxft,pangocairo, andlibcrypt(-lcryptwhere separate). Optional forgtkTtk: C++ compiler,gtk+-2.0,tcl,tk, and Tk privatettkTheme.h. - 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.
Build & install
# 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
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 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 for full replacement, identity, and XKB status indicator details.
Session autostart
anode-session invokes anode-autostart start once DWM advertises ANODE WM via _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 for full directive, profile, and XDG precedence details.
Documentation & tests
Run verification suite (requires Python 3 and Xvfb for X11 integration checks):
make test