r/AlpineLinux • • 5d ago

LaynOS: My custom desktop environment & Alpine-based distro running Wayland (labwc) under 1GB RAM

Post image

Hey everyone! I've been building **LaynOS**, a custom Linux distribution based on **Alpine Linux** (musl + OpenRC) designed to combine a clean, modern desktop experience with minimal resource usage.

**Current stack:**

* **Base:** Alpine Linux (6.18 LTS kernel, `apk`)

* **Wayland Compositor:** `labwc`

* **Terminal:** `foot`

* **Custom UI:** Built a custom floating bottom panel, a centered app launcher, and a native "Sensory Comfort" module for quick visual/audio adjustments.

* **Compatibility:** Integrated a Debian container/chroot layer right into the launcher so I can run `glibc` desktop apps (like Blender or Audacity) seamlessly alongside native `musl` packages.

Even with a full Wayland session running, idle RAM usage sits right around **975 MiB** (and around ~512 MiB without background services/apps).

Would love to hear your thoughts or tips on optimizing Wayland + musl setups even further!

84 Upvotes

45 comments sorted by

18

u/Sva522 5d ago

This is not a distribution, this is a configured alpine.

1

u/Some_You_4330 4d ago

Custom C/libdrm boot splash, custom Wayland panel & launcher, native Debian/glibc container bridge, and a custom system installer flow — it goes way beyond a dotfile rice. Using Alpine's apk base doesn't make it less of a distro, unless you also think Ubuntu, Mint, or Void forks aren't distros.

16

u/thundR89 5d ago

Good work, claude!

1

u/Some_You_4330 4d ago

Not everyone needs an LLM to write C and GTK/CSS — I just used translation to format the English post since it's not my first language.

7

u/thundR89 4d ago

What a lier

1

u/Some_You_4330 4d ago

Bold claim for someone who has never seen a single line of the source code. Have a good one.

5

u/thundR89 4d ago

Brotha. I coded a lot of program in many language. Making a theme and throwing some shit together doesn't make u really do anything. More even if u use claude for this.

0

u/paper_sheet034 4d ago

You need to explain yourself.
He used Claude and got a better result than you did, because you didn’t even start and if you did, then OP definitely beat you on time.
“Oh, but he used AI to write his UI”. Yes. And so what? Judge the UI: is it good? Then shut up. Is it bad? Then give advice on what he can change or just, again, shut up and move on with your happy and LLM-free life

5

u/thundR89 3d ago

Defending an n+1th tier z "distro" that unneccessary and "writtened" by ai. Okay dude.

0

u/paper_sheet034 3d ago

Again, you can’t just talk like that and expect people to take you seriously. Where are the arguments? What do you actually think about this and why? That’s just how conversations work

2

u/thundR89 3d ago

Its isn't needs to be explained u know? Changeing a color or wallpaper doesn't meen, u CREATED a full distro. Thats the first rule. Throwing together already existed programs the same story. Thats callable as a second rule. Creating without maintane also a red flag. There is many other thing that indicates why do not "make" a distro. Our guys really doesn't understand why Linux never reach "their year". Bruh.

2

u/semedilino073 3d ago

This was about AI, not distros.
But if we talk about distros, then I’m indifferent. On one hand, you’re right, adding a couple of things here and there for my things doesn’t make it a distro. But on the other hand, we call Ubuntu, Omarchy, Endeavour, Manjaro, SteamOS, Bazzite, AntiX and milions more distros. So I’ve never been able to see the line here and I think it’s subjective

6

u/The_Real_Gyurka 4d ago

more ram use than Mint

No, thanks, ill try it when claude gets it bellow 100mb

-1

u/Some_You_4330 4d ago

That 975 MiB is with active background services and apps running — cold boot sits around ~512 MiB on a full Wayland session (good luck getting Mint Cinnamon under 1.2 GB on boot). Also, it's C and GTK/CSS written by hand, not Claude — feel free to stick with Mint if 100 MB is your bar.

2

u/The_Real_Gyurka 4d ago

https://imgur.com/a/h6NPrzB

look into AntiX which is the gold standard for RAM-starved machines. Of course <100MiB is minimal Arch install tier, but you can do better than 512MiB. I say this because I have been the man with 2 Gigabytes of RAM, which is pretty much the only time when idle/background RAM useage actually matters.

-1

u/Some_You_4330 4d ago

antiX is great for reviving 2GB X11 machines, no doubt — I'm just aiming for a different trade-off here: a modern Wayland compositor with a custom GTK UI and seamless glibc app support out of the box, rather than a barebones Xorg/IceWM setup. Different goals, both valid.

2

u/The_Real_Gyurka 4d ago

Usecase? Why should I use your midweight distro over eg.: fedora with GNOME that has better QOL and full support for glibc apps? (no reply to my image? bot detected and downvoted)

-1

u/Some_You_4330 3d ago

Analisei sua captura de tela. Sua instalação do Mint está consumindo 862 MiB — logo após você ter me sugerido manter o uso abaixo de 100 MiB no antiX — e agora você diz que, em vez disso, eu deveria usar o Fedora GNOME. Também é curioso que você tenha encerrado um servidor local do llama.cpp em `~/Models` logo antes de executar o `neofetch`, enquanto, nos comentários, reclamava do Claude. Criei o LaynOS porque queria um ambiente de desktop rápido, baseado em OpenRC + Wayland e com elementos GTK personalizados; é simples assim.

2

u/The_Real_Gyurka 3d ago

Your cool new os uses less ram than babys first linux after 6 hours of uptime! I liked the toy parts of your os btw, but you keep outsourcing your replies to a machine that puts — in every reply, a character that i have to copy and paste — cause it isn't on my phone or desktop keyboard 😂😂😂

2

u/ionV4n0m 5d ago

I've always been a fan of a minimal and clean UI. This is nice!

1

u/Scary-Technology-278 5d ago

Great man, it seems like it's some kind of mix of Chrome OS and Windows. I'm also trying to rice labwc in a Windows XP style,if I finish, I'll post that too

0

u/Some_You_4330 4d ago

Thanks! That ChromeOS + Windows hybrid feel was exactly what I was aiming for — clean, fast, and familiar. Definitely tag me when you finish that Windows XP labwc setup, would love to see how you theme the taskbar and start menu!

1

u/Specialist-Dog-501 5d ago

Awesome! A Wayland DE with under 1GB is brilliant- I wonder if any Nvidia GPU is involved, so was part of the visual work outsource from CPU to GPU to get such low numbers ?
Has there already any work invested into the installer ? Alpine's native one..is a nightmare for me, one of the worst and any visual installer would be appreciated- however it's some real work to set a.e Calamares up, I heard.
The main purpose of this distro are servers and hypervisors, I guess ?

1

u/Some_You_4330 4d ago

Thanks! No Nvidia involved — it's running on an old Ivy Bridge Xeon iGPU (HD Graphics P4000), and labwc + foot with pure native C/GTK components keeps the memory footprint tiny with zero XWayland overhead in the core session.

For the installer, I skipped Calamares (way too heavy for musl) and built a custom lightweight setup flow on top of Alpine's disk scripts. The main goal is a fast, ultra-lightweight daily desktop that also runs smoothly on low-spec hardware like old Chromebooks and SBCs.

1

u/Specialist-Dog-501 4d ago

Thanks for this details! Someone shared with me once, that wayland can actually be quite slim..this kind of confirms it, at least then in combo with LabWC..and even including SystemD. So the RAM eater is likely then XWayland? That would kind of makes sense, adapters between old and new can be very costly.
(I guess this is the reason that XFCE wrote a complete new version for Wayland rather than adding adaptors to the existing XFCE X11 Code).
So your target is tech wise Chromebooks and other small RAM devices..makes sense.
But in terms of use cases- hypervisors, webservers, and lightweight desktop users ?

0

u/Some_You_4330 2d ago

Exactly. I actually built LaynOS with low-end Chromebooks in mind. I tested it on my own basic Chromebook (with custom UEFI firmware) and it runs super smoothly even with tight RAM and storage.

For X11 apps, XWayland is spun up on demand only when an app actually needs it, so the base desktop stays pure Wayland and keeps that low ~500MB footprint. Even when I run heavy glibc apps like Chrome through my Debian compatibility layer, they run natively over Wayland without touching XWayland. That makes it a great daily driver for old laptops, Chromebooks, or lightweight homelab workstations where every megabyte counts.

1

u/Specialist-Dog-501 3d ago

..but this also means: Avoid X11 apps to keep the RAM usage low, right ? Important footnote, I actually have no clue what apps are using Wayland and what are using X11 (on my mint), something to dig into if someone wants to use this OS on a device with little RAM..

1

u/theragnaldhi 5d ago

How can I access this ISO?

1

u/Some_You_4330 4d ago

I'm still polishing a few hardware quirks in 0.1.0-beta.2 before uploading the public ISO image — I'll share the download link here on the sub as soon as the next build is packaged!

1

u/Balrog9162 4d ago

Very nice work!

I like it how many new distros we have, it is so hard to pick one. I am so confident they all will stay very active for a very long time! With llm's probably daily updates for everything.

Fun aside - why not use those tokens to improve existing well working wm's/distros and just post your (not sarcasm) nice dotfiles instead?

1

u/Some_You_4330 4d ago

Because tweaking dotfiles doesn't give you a C/libdrm boot splash, a unified musl/glibc app launcher, or a sensory-comfort layer out of the box. And no LLM tokens built this — just C, GTK/CSS, and systems work. You're welcome to stick to config files if building things from scratch isn't your thing.

1

u/VeiledPants8028 3d ago

Send Microsoft the desktop environment. Very very original

0

u/Some_You_4330 2d ago

Honestly, I deliberately blended design cues from ChromeOS, Windows 11, and Deepin because they are clean and intuitive, except this one runs in ~500MB of RAM without bloat or telemetry.

1

u/Revolutionary-Yak371 3d ago

Where is the download link or the Git repo?

-1

u/Some_You_4330 2d ago

Neither the ISO nor the repo is public just yet. I'm wrapping up the final details on the post-install setup and the Debian compatibility manager because I don't want to put out something half-baked. As soon as everything is solid and ready for daily use, I'll drop the Git repo and ISO link here.

1

u/aerialviews007 4d ago

Awesome! I'll be trying it soon

1

u/Some_You_4330 4d ago

Thanks! I'm still polishing a few hardware quirks in 0.1.0-beta.2 before uploading the public ISO image — I'll post the download link here on the sub as soon as the next build is ready.

0

u/busiedcake7945 5d ago

uhhh wayfire also runs under 1GB RAM so it's not special and wayland sucks so 3/10 without wayland it's 8/10 let the X live

1

u/Some_You_4330 4d ago

Wayfire is a great compositor too, just heavier on dependencies than a minimal labwc setup. As for X11 — it served us well for decades, no need to resurrect it on fresh builds in 2026.

1

u/busiedcake7945 4d ago

X11 just works it looks old but if it works dont touch it because if it breaks its because you touch it can you add a X11 version? it would be cool

1

u/Some_You_4330 4d ago

Glad the design caught your eye! For now, keeping LaynOS strictly Wayland-only is what lets me maintain a tiny dependency tree and low memory footprint as a solo dev — though since it's built on Alpine, nothing stops anyone from swapping in Openbox/Xorg on top of the base once the ISO drops.

1

u/AdLimp8574 1d ago

just build a fucking de instead of a distro, what is the point in spliting off for just a de

0

u/Artistic_Crazy_7120 5d ago

Looks awesome man. Good work!

1

u/Some_You_4330 4d ago

Thk for feedback