ALL INTELLIGENCE
Hacker News AIT2·Open Source

RediWM Ships a 300k-Line Zig Desktop Environment in One Process

Original title: Show HN: A 300k-line Zig desktop environment with its own compositor,GUI toolkit
58AI Score

RediWM is a wlroots-based Wayland compositor that folds the taskbar, start menu, settings, lock and login screens, notifications and OSDs into a single process, booting in 1–2 seconds with under 200 MB idle RAM and under 1% idle CPU. The project spans roughly 300k lines of Zig, 21k lines of C and 61k lines of Python test infrastructure, and is published on GitHub.

Related Entities

Full Report

RediWM is a 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>&lt; 200 MB</h3><b>Idle RAM usage</b></td> <td width="25%" align="center" valign="top"><h3>&lt; 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">[<img src="/api/v1/file/hot_img_6a5100145b2e3f77bc320b625f839274.webp" alt="RediWM theme showcase 1" width="440" height="275" />](https://github.com/user-attachments/assets/b4cbd48c-ccab-452e-8457-2d1b8c096def)</td> <td width="50%" align="center" valign="middle">[<img src="/api/v1/file/hot_img_4e4e9479868d215151d09c12a8c81382.webp" alt="RediWM theme showcase 3" width="440" height="275" />](https://github.com/user-attachments/assets/a65979e4-17d5-488d-8d0a-fc1a8d2d2c82)</td> </tr> <tr> <td width="50%" align="center" valign="middle">[<img src="/api/v1/file/hot_img_1476276745ed97a54e606dbecccce394.webp" alt="RediWM theme showcase 2" width="440" height="275" />](https://github.com/user-attachments/assets/10f9becc-bcd9-4089-872b-4a03d1dba818)</td> <td width="50%" align="center" valign="middle">[<img src="/api/v1/file/hot_img_7703a6562d549d553fdea77b3a603195.webp" alt="RediWM theme showcase 4" width="440" height="275" />](https://github.com/user-attachments/assets/dd0cdae7-4c4d-401c-9624-80895897d0de)</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">[<img src="/api/v1/file/hot_img_74b2152a454added7b58703f6a2b0f9d.webp" alt="RediWM Settings" width="440" />](https://github.com/user-attachments/assets/80af0119-b57c-4642-9092-3e4885aab92e)</td> <td width="50%" align="center" valign="middle">[<img src="/api/v1/file/hot_img_dd333c181b021396e41c040fd6baf235.webp" alt="RediWM file manager" width="440" />](https://github.com/user-attachments/assets/57d244a3-7ae1-4456-8139-f5320caa688c)</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">[<img src="/api/v1/file/hot_img_e627ccef6dcc41ff4b69b4e2c8a4a4c5.webp" alt="RediWM image and PDF viewer" width="440" />](https://github.com/user-attachments/assets/47c51bdd-2879-4e52-b5e5-0faf2b85ec05)</td> <td width="50%" align="center" valign="middle">[<img src="https://github.com/user-attachments/assets/91b25a5d-140d-43ea-a33f-b8f1921e0288" alt="RediWM text editor" width="440" />](https://github.com/user-attachments/assets/91b25a5d-140d-43ea-a33f-b8f1921e0288)</td> </tr> <tr> <th width="50%" align="center">System Monitor</th> <th width="50%" align="center">Dock</th> </tr> <tr> <td width="50%" align="center" valign="middle">[<img src="https://github.com/user-attachments/assets/68664e4d-fd05-481c-af06-3f29740397cc" alt="RediWM image and PDF viewer" width="440" />](https://github.com/user-attachments/assets/68664e4d-fd05-481c-af06-3f29740397cc)</td> <td width="50%" align="center" valign="middle">[<img src="https://github.com/user-attachments/assets/e9435010-4c3a-4424-bd56-c8a9e271ba11" alt="RediWM text editor" width="440" />](https://github.com/user-attachments/assets/e9435010-4c3a-4424-bd56-c8a9e271ba11)</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>

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)


作者发帖说明(HN):

the breakdown: - 300k lines of Zig — core desktop and applications. - 21k lines of C — supporting implementation. - 61k lines of Python — test infrastructure.

rediwm.redios.org if you want a visual tour.

Thanks!