ANODE logo

# ANODE — A Nicely Optimized Desktop Environment ANODE is a lightweight, keyboard-first X11 desktop environment for **Linux, FreeBSD, OpenBSD, and NetBSD**. It brings together a customized tiling window manager, unified dark/light theming, fractional DPI scaling across toolkits, and built-in everyday system controls with minimal overhead. ## What's included - **Window manager, launcher & terminal**: A customized `dwm` setup with workspace layouts, a clickable status bar, and an XEmbed system tray, paired with `dmenu`, the `anode-launcher` desktop/Flatpak app menu, and the `st` terminal featuring `Fira Code` ligatures. - **Unified themes & fonts**: 22 built-in themes (`data/themes/*.xth`, defaulting to dark-silvery `Anodized`) synced across ANODE, GTK 2/3/4, Qt 5/6, Electron/Chromium apps, Tk (`gtkTtk`), and Dunst notifications — keeping ANODE tools and monospace slots on `Fira Code` while giving third-party apps `Roboto` (or `Noto Sans` when unavailable) — plus a built-in theme editor, duplicator, and `.xth` importer in `anode-themes`. - **Fractional DPI scaling & multi-monitor arrangement**: Scale cleanly from `0.50x` to `4.00x` (or `auto` from primary monitor EDID/DPI) across X11, fonts, cursors, GTK, Qt, and Electron/Chromium without double-scaling, alongside an interactive monitor arrangement dialog with 15 s safety revert and persistent `$XDG_CONFIG_HOME/anode/displays.conf` layouts (`anode-apply-display`). - **Built-in desktop utilities**: Fast native panels for power, idle/screen timeouts & control center (`anode-power`), Wi-Fi/Bluetooth/DNS (`anode-net`), audio (`anode-audio`), displays, arrangement, timeouts & scaling (`anode-display`), date & timezone (`anode-datetime`), themes & editor (`anode-themes`), screen locking (`anode-lock`), multimedia keys (`anode-media-key`), on-screen virtual keyboard (`anode-vkbd`), and opt-in touchscreen edge gestures (`anode-touchd`). - **Session autostart & live switching**: Familiar i3-style autostart config (`~/.config/anode/autostart`), session profiles, XDG autostart entries, and safe session switching via `anode-replace`. ## Build & install ```sh make # Build ANODE (or 'make rebuild' for a clean rebuild) sudo make install-system # Install to /usr/local + /usr/share/xsessions (LightDM/SDDM/GDM) ``` - **Minimal `~/.xinitrc` install** (`exec /usr/local/bin/anode-session`): use `sudo make install` instead of `install-system`. - **Touchscreen hardware opt-in (`anode-touchd`)**: use `sudo make install-system-touch` or `sudo make install-touch` (or pass `WITH_TOUCHD=1` to `make` / `make rebuild` / `make install`; `anode-vkbd` is always installed). - **Custom options & help**: run `make help` to see all targets and variables (`PREFIX=/opt/anode`, `XSESSIONSDIR=...`, `DESTDIR=...`, `CC=clang`, `WITH_TOUCHD=1`, `WITH_GTKTTK=0`). - To switch from an existing X11 session, run `anode-replace` (or `anode-replace --switch-session` under a display manager). Pass `--profile NAME` to `anode-session` or `anode-replace` to enable profile-specific autostart rules. ## Everyday shortcuts & commands Default modifier key is `Super` (`Mod4`). | Shortcut | Action | |---|---| | `Super + Return` | Open terminal (`st`) | | `Super + p` / `Super + Space` | Open application & Flatpak launcher (`anode-launcher`) | | `Super + c` | Open control center & power (`anode-power`) | | `Super + d` | Open monitor arrangement, display & scaling settings (`anode-display`) | | `Super + t` | Open theme selector, editor & `.xth` importer (`anode-themes`) | | `Super + n` | Open network, Wi-Fi & Bluetooth settings (`anode-net`) | | `Super + a` | Open audio mixer & profiles (`anode-audio`) | | `Super + w` | Open date & timezone panel (`anode-datetime`) | | `Super + Shift + l` | Lock screen (`anode-lock`) | | `Super + Shift + r` | Reload `.Xresources`, theme, scale, and `exec_always` autostart entries | Themes, monitor layouts, and display scaling can also be managed from the command line: ```sh anode-apply-theme LynxLair anode-apply-theme --install /path/to/CustomTheme.xth anode-apply-scale 1.50 anode-display --arrange ``` See [docs/KEYBINDINGS.md](docs/KEYBINDINGS.md) for all window management bindings, media keys, and touchscreen edge gestures. ## Dependencies - **Build-time**: POSIX `make`, C compiler (`cc`), `pkg-config`, X11 headers (`x11`, `xext`, `xft`, `xinerama`, `xrandr`, `xfixes`, `xi`, `xtst`, optionally `xscrnsaver`), `fontconfig`, `freetype2`, `harfbuzz`, `cairo`, `pango`, `pangoxft`, `pangocairo`, and `libcrypt`. Optional for `gtkTtk`: C++ compiler, `gtk+-2.0`, `tcl`, `tk`, and Tk private `ttkTheme.h`. - **Runtime (optional tools auto-detected)**: `xrdb`, `xprop`, `xrandr`, `xsettingsd`, `fc-list`, `gsettings`, `dunst`, `notify-send`, `scrot`/`import`/`maim`, `wpctl`/`pactl`/`amixer`/`sndioctl`, `nmcli`/`wpa_cli`, `bluetoothctl`, `playerctl`/`mpc`, `chronyc`, `doas`/`sudo`/`pkexec`, plus **Fira Code**, **Roboto** (or **Noto Sans**), and **DejaVuSansM Nerd Font**. ## Documentation & tests - [Keybindings & touch gestures](docs/KEYBINDINGS.md) — full shortcut and swipe reference. - [Session management & status bar](docs/SESSION.md) — `anode-replace`, display manager handoff, and status bar layout. - [Session autostart](docs/AUTOSTART.md) — `exec` / `exec_once` / `exec_always`, profiles, and XDG autostart. - [Architecture](docs/ARCHITECTURE.md) — component map, DPI scaling math, and X11 implementation details. Run the test suite (uses Python 3 and `Xvfb` for X11 integration checks): ```sh make test ``` ## Credits Created by Luxferre in 2026, released into the public domain with no warranties.