RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
Merge origin/master (README updates)
oxydizer360fd29697bf
diff --cc README.mdindex f00e378,bf51cbd..bf08db8--- a/README.md+++ b/README.md@@@ -1,111 -1,201 +1,202 @@@- # RediWM+ <a name="top"></a><div align="center">- <img width="1085" height="233" alt="redi-logo" src="https://github.com/user-attachments/assets/4e80c572-bd30-4800-bcf3-acb95299358d" />++ <img src="https://github.com/user-attachments/assets/0c8ab1b7-32f7-4f7a-b5d5-715cccc6d0b9" alt="RediWM — One process. A whole desktop. A Wayland compositor with its shell and everyday apps built in, written in Zig." width="100%" />+ <br /><br />+ <a href="#building-from-source"><img src="https://img.shields.io/badge/Zig-0.17-F7A41D?style=for-the-badge&logo=zig&logoColor=white&labelColor=0B0E12" alt="Built with Zig 0.17" /></a>+ <a href="https://gitlab.freedesktop.org/wlroots/wlroots"><img src="https://img.shields.io/badge/wlroots-0.20-ED233E?style=for-the-badge&labelColor=0B0E12" alt="Powered by wlroots 0.20" /></a>+ <a href="#features"><img src="https://img.shields.io/badge/Desktop-Wayland-ED233E?style=for-the-badge&logo=wayland&logoColor=white&labelColor=0B0E12" alt="Wayland desktop" /></a>+ <a href="#license"><img src="https://img.shields.io/badge/License-MIT%20OR%20Apache--2.0-303640?style=for-the-badge&labelColor=0B0E12" alt="Licensed under MIT or Apache 2.0" /></a>+ <br /><br />+ <a href="#installation"><img src="https://img.shields.io/badge/GET_STARTED-ED233E?style=for-the-badge&logo=linux&logoColor=white" alt="Get started" /></a>+ + <a href="#themes"><img src="https://img.shields.io/badge/EXPLORE_THE_DESKTOP-303640?style=for-the-badge" alt="Explore the desktop" /></a>+ <br /><br />+ <a href="#features"><b>Features</b></a> · + <a href="#built-in-apps"><b>Built-in apps</b></a> · + <a href="#keyboard-shortcuts"><b>Shortcuts</b></a> · + <a href="#configuration"><b>Configuration</b></a> · + <a href="#ipc"><b>IPC</b></a> · + <a href="#documentation"><b>Docs</b></a>+ <br /><br />+ </div>++ **RediWM** is a [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) Wayland compositor that draws its **entire desktop shell in one process**: taskbar, start menu, settings, lock and login screens, notifications and on-screen displays.++ No separate bar to configure. No launcher to bolt on. No notification daemon to wire up. **Just one desktop, built together.**++ https://github.com/user-attachments/assets/a9f8529d-19c4-4a45-a4be-95a184bde15f++ <table width="100%">+ <tr>+ <td width="25%" align="center" valign="top"><h3>1–2s</h3><b>From start to desktop</b></td>+ <td width="25%" align="center" valign="top"><h3>1 process</h3><b>Compositor + desktop shell</b></td>+ <td width="25%" align="center" valign="top"><h3>< 200 MB</h3><b>Idle RAM usage</b></td>+ <td width="25%" align="center" valign="top"><h3>< 1% CPU</h3><b>Idle CPU usage</b></td>+ </tr>+ </table>++ <hr />++ <a name="themes"></a>++ <table align="center" width="100%">+ <tr>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/b4cbd48c-ccab-452e-8457-2d1b8c096def"><img src="https://github.com/user-attachments/assets/b4cbd48c-ccab-452e-8457-2d1b8c096def" alt="RediWM theme showcase 1" width="440" height="275" /></a></td>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/a65979e4-17d5-488d-8d0a-fc1a8d2d2c82"><img src="https://github.com/user-attachments/assets/a65979e4-17d5-488d-8d0a-fc1a8d2d2c82" alt="RediWM theme showcase 3" width="440" height="275" /></a></td>+ </tr>+ <tr>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/10f9becc-bcd9-4089-872b-4a03d1dba818"><img src="https://github.com/user-attachments/assets/10f9becc-bcd9-4089-872b-4a03d1dba818" alt="RediWM theme showcase 2" width="440" height="275" /></a></td>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/dd0cdae7-4c4d-401c-9624-80895897d0de"><img src="https://github.com/user-attachments/assets/dd0cdae7-4c4d-401c-9624-80895897d0de" alt="RediWM theme showcase 4" width="440" height="275" /></a></td>+ </tr>+ </table>++ <a name="built-in-apps"></a>+ ### Built-in apps++ <table align="center" width="100%">+ <tr>+ <th width="50%" align="center">⚙️ Settings</th>+ <th width="50%" align="center">📁 File manager</th>+ </tr>+ <tr>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/80af0119-b57c-4642-9092-3e4885aab92e"><img src="https://github.com/user-attachments/assets/80af0119-b57c-4642-9092-3e4885aab92e" alt="RediWM Settings" width="440" /></a></td>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/57d244a3-7ae1-4456-8139-f5320caa688c"><img src="https://github.com/user-attachments/assets/57d244a3-7ae1-4456-8139-f5320caa688c" alt="RediWM file manager" width="440" /></a></td>+ </tr>+ <tr>+ <th width="50%" align="center">🖼️ Image / PDF viewer</th>+ <th width="50%" align="center">📝 Text editor</th>+ </tr>+ <tr>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/47c51bdd-2879-4e52-b5e5-0faf2b85ec05"><img src="https://github.com/user-attachments/assets/47c51bdd-2879-4e52-b5e5-0faf2b85ec05" alt="RediWM image and PDF viewer" width="440" /></a></td>+ <td width="50%" align="center" valign="middle"><a href="https://github.com/user-attachments/assets/91b25a5d-140d-43ea-a33f-b8f1921e0288"><img src="https://github.com/user-attachments/assets/91b25a5d-140d-43ea-a33f-b8f1921e0288" alt="RediWM text editor" width="440" /></a></td>+ </tr>+ </table>++ <hr />++ <a name="features"></a>++ <table width="100%">+ <tr>+ <td width="33%" valign="top"><h3>Sharp on HiDPI</h3>Xwayland native scaling keeps X11 applications sharp on high-density displays.</td>+ <td width="34%" valign="top"><h3>Lock / Login screen</h3>PAM-backed lock and login screens, with the optional <code>rediwm-dm</code> display manager.</td>+ <td width="33%" valign="top"><h3>Your notifications</h3>A built-in notification daemon with actions, images and do-not-disturb rules.</td>+ </tr>+ <tr>+ <td width="33%" valign="top"><h3>Night light</h3>Adjust the display colour temperature with the built-in night light.</td>+ <td width="34%" valign="top"><h3>Multi-monitor support</h3>Use multiple monitors in the same desktop session.</td>+ <td width="33%" valign="top"><h3>Tiling / stacking layouts</h3>Arrange windows using tiling or stacking layouts.</td>+ </tr>+ </table>++ **Built-in shell and apps.** Taskbar, start menu, desktop icons, settings, file manager, image/PDF viewer and text editor. No separate Waybar, greeter, launcher or notification daemon is required.++ **Wayland tools.** Works with `wlr-randr`, `kanshi`, `swaylock`, `swayidle`, `grim`, `wf-recorder`, `wayvnc` and docks.++ <a name="installation"></a>+ ## 🚀 Get RediWM++ ### Linux installer++ **Arch and derivatives — including Artix and CachyOS — Debian, Ubuntu and Fedora:**- ### A Wayland compositor with its own desktop shell, built in Zig+ ```sh+ curl -fsSL https://rediwm.redios.org/install.sh | sh+ ```- </div>+ <details>+ <summary><b>🔐 Include the optional RediWM display manager</b></summary>- RediWM is a single process [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) compositor- that draws its whole shell itself: taskbar, start menu, settings, lock and login- screens, notifications and OSDs, all in one process, benchmarked against- [labwc](https://labwc.github.io/) to stay as lean (< 200mb idle ram usage, <1% CPU usage)+ Install the prebuilt release together with **`rediwm-dm`**:- | | |- | :---: | :---: |- | <img width="100%" alt="Screenshot 1" src="https://github.com/user-attachments/assets/b4cbd48c-ccab-452e-8457-2d1b8c096def" /> | <img width="100%" alt="Screenshot 2" src="https://github.com/user-attachments/assets/10f9becc-bcd9-4089-872b-4a03d1dba818" /> |- | <img width="100%" alt="Screenshot 3" src="https://github.com/user-attachments/assets/a0ccd5f3-7476-4171-80c5-5f74a751e6b7" /> | <img width="100%" alt="Screenshot 4" src="https://github.com/user-attachments/assets/dd0cdae7-4c4d-401c-9624-80895897d0de" /> |+ ```sh+ curl -fsSL https://rediwm.redios.org/install.sh | sh -s -- --dm+ ```- ## Features+ </details>- - **One process:** no waybar, greeter, launcher or notification- daemon to wire up.- - **Pan-and-zoom desktop:** a canvas several screens wide; zoom the desktop or- single windows.- - **Lock and login screens** with PAM, plus `rediwm-dm`, a small display manager.- - **Notification daemon** with actions, images and do-not-disturb rules.- - **Sharp X11 apps on HiDPI** through Xwayland native scaling.- - **GPU glass** behind shell surfaces, re-blurred only when needed.- - **Works with wlroots tools:** wlr-randr, kanshi, swaylock, swayidle, grim,- wf-recorder, wayvnc, docks.- - **JSON IPC** (`rediwm-msg`), desktop icons, a file manager and an image viewer.+ ### NixOS · x86_64- ## Installing+ Use the [flake and NixOS module](docs/nix.md), **not the shell installer above**.- **Arch and derivatives (including Artix and CachyOS), Debian, Ubuntu and Fedora:**- install the prebuilt release with:+ To build just the package, without configuring a login session:```sh- curl -fsSL https://rediwm.redios.org/install.sh | sh # add `-s -- --dm` for rediwm-dm+ nix build github:oxydizer/rediwm```- **NixOS (x86_64):** use the [flake and NixOS module](docs/nix.md), rather than- the shell installer above.+ <a name="building-from-source"></a>+ ### Build it yourself- To build just the Nix package, without configuring a login session:+ Requires **Zig 0.17**, **wlroots 0.20**, and the development dependencies below.- ```sh- nix build github:oxydizer/rediwm- ```+ <details>+ <summary><b>📦 Full dependency list</b></summary>- ## Building and running+ Wayland, wayland-protocols, xkbcommon, pixman, FreeType, HarfBuzz, Fontconfig, librsvg/GdkPixbuf, PangoCairo, libinput, PAM, libpulse, libpipewire-0.3, Poppler GLib, libarchive, libjpeg, libpng, libwebp and GNU Readline.- Requirements: Zig 0.17, wlroots 0.20, and the development files for Wayland,- wayland-protocols, xkbcommon, pixman, FreeType, HarfBuzz, Fontconfig,- librsvg/GdkPixbuf, PangoCairo, libinput, PAM, libpulse, libpipewire-0.3, Poppler GLib,- libarchive, libjpeg, libpng, libwebp and GNU Readline.+ </details>```sh- zig build run -- foot # nested in your current Wayland session- zig build -Doptimize=ReleaseSafe # for daily use and measurements- sh scripts/install-session.sh # install and restart the running session- sh scripts/install-session.sh --no-restart --dm # install only, plus rediwm-dm+ # Try it nested inside your current Wayland session+ zig build run -- foot++ # Build for daily use and measurements+ zig build -Doptimize=ReleaseSafe++ # Install the session and restart the running session+ sh scripts/install-session.sh++ # Or install without restarting, including rediwm-dm+ sh scripts/install-session.sh --no-restart --dm```-- For custom prefixes and distribution packages, see- [Installation layouts and packaging](docs/installation.md).- ## Using it+ For custom prefixes and distribution packages, see [Installation layouts and packaging](docs/installation.md).++ <hr />++ <a name="keyboard-shortcuts"></a>+ ## ⌨️ Keyboard shortcuts| Keys | Action |- | --- | --- |- | Super+Space | centered app launcher |- | Super+T / E / B | terminal / Files / browser |- | Super+Q, Super+F, Super+M | close, fullscreen, maximize |- | Super+arrows | slide to the neighbouring desktop |- | Super+Ctrl+arrows | focus the window in that direction |- | Alt+Tab | window switcher |- | Super+1…5, Super+=/-/0 | window zoom |- | Super+Shift+=/-/0 | desktop zoom |- | Super+A | canvas window overview |- | Super+L | lock |- | Ctrl+Shift+S, Print | region / full-screen screenshot |- | Super+Z | undo the last window move or resize |- | Super+Shift+E | quit |-- Canvas bindings live in `[keybinds]`; `"noop"` disables one.-- ## Configuration-- `$XDG_CONFIG_HOME/rediwm/config.toml` (`REDIWM_CONFIG` overrides) is written with- commented defaults on first run and reloads on save; a parse error keeps the- previous config.- Sections:- `[theme]`- `[input]`- `[input_method]`- `[compositor]`- `[region]`- `[idle]`- `[night_light]`- `[notifications]`- `[desktop]`- `[polkit]`- `[ipc]`- and more--- Window rules match by globs; for each property the last matching rule wins:+ | :--- | :--- |+ | <kbd>Super</kbd> + <kbd>Space</kbd> | Open the centred app launcher |+ | <kbd>Super</kbd> + <kbd>T</kbd> / <kbd>E</kbd> / <kbd>B</kbd> | Terminal / Files / browser |+ | <kbd>Super</kbd> + <kbd>Q</kbd> / <kbd>F</kbd> / <kbd>M</kbd> | Close / fullscreen / maximise |+ | <kbd>Super</kbd> + <kbd>←</kbd> <kbd>→</kbd> <kbd>↑</kbd> <kbd>↓</kbd> | Slide to the neighbouring desktop |+ | <kbd>Super</kbd> + <kbd>Ctrl</kbd> + <kbd>arrows</kbd> | Focus the window in that direction |+ | <kbd>Alt</kbd> + <kbd>Tab</kbd> | Switch windows |+ | <kbd>Super</kbd> + <kbd>1…5</kbd> or <kbd>=</kbd> / <kbd>-</kbd> / <kbd>0</kbd> | Zoom a window |+ | <kbd>Super</kbd> + <kbd>Shift</kbd> + <kbd>=</kbd> / <kbd>-</kbd> / <kbd>0</kbd> | Zoom the desktop |++| <kbd>Super</kbd> + <kbd>A</kbd> | Canvas window overview |+ | <kbd>Super</kbd> + <kbd>L</kbd> | Lock the screen |+ | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd> / <kbd>Print</kbd> | Region / full-screen screenshot |+ | <kbd>Super</kbd> + <kbd>Z</kbd> | Undo the last window move or resize |+ | <kbd>Super</kbd> + <kbd>Shift</kbd> + <kbd>E</kbd> | Quit RediWM |++ Canvas bindings live in `[keybinds]`; set one to `"noop"` to disable it.++ <a name="configuration"></a>+ ## 🎛️ Configuration++ ```text+ $XDG_CONFIG_HOME/rediwm/config.toml+ ```++ RediWM writes commented defaults on first run and **reloads on save**. A parse error keeps the previous configuration active. Set `REDIWM_CONFIG` to override the path.++ <details>+ <summary><b>🗂️ Configuration sections</b></summary>++ `[theme]` · `[input]` · `[input_method]` · `[compositor]` · `[region]` · `[idle]` · `[night_light]` · `[notifications]` · `[desktop]` · `[polkit]` · `[ipc]` · and more.++ </details>++ <details>+ <summary><b>🪟 Per-window rules and a Picture-in-Picture example</b></summary>++ Window rules match by globs. For each property, the **last matching rule wins**.```toml[[window_rules]]