Files
anode/README.md
T

73 lines
4.7 KiB
Markdown
Raw Normal View History

<p align="center">
<img src="artwork/anode-main-logo.png" alt="ANODE logo" width="220">
</p>
# 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`) 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).
- **Fractional DPI scaling**: Scale cleanly from `0.50x` to `4.00x` (or `auto` from monitor EDID/DPI) across X11, fonts, cursors, GTK, Qt, and Electron/Chromium without double-scaling.
- **Built-in desktop utilities**: Fast native panels for power & control center (`anode-power`), Wi-Fi/Bluetooth/DNS (`anode-net`), audio (`anode-audio`), displays & scaling (`anode-display`), date & timezone (`anode-datetime`), themes (`anode-themes`), screen locking (`anode-lock`), multimedia keys (`anode-media-key`), and an optional touch keyboard (`anode-vkbd`) with edge-swipe 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
sudo make XSESSIONSDIR=/usr/share/xsessions install
```
- Pass `PREFIX=/opt/anode`, `CC=clang`, or `WITH_GTKTTK=1` to customize the build (`WITH_GTKTTK=auto` is enabled by default).
- Omit `XSESSIONSDIR=...` if you launch from `~/.xinitrc` (`exec /usr/local/bin/anode-session`) instead of a system display manager like LightDM.
- 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 display & scaling settings (`anode-display`) |
| `Super + t` | Open theme & font switcher (`anode-themes`) |
| `Super + n` | Open network, Wi-Fi & Bluetooth settings (`anode-net`) |
| `Super + a` | Open audio mixer & profiles (`anode-audio`) |
| `Super + Shift + l` | Lock screen (`anode-lock`) |
| `Super + Shift + r` | Reload `.Xresources`, theme, scale, and `exec_always` autostart entries |
Themes and display scaling can also be changed from the command line:
```sh
anode-apply-theme LynxLair
anode-apply-scale 1.50
```
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
```
2026-11-26 20:31:58 +02:00
## Credits
Created by Luxferre in 2026, released into the public domain with no warranties.