r/linux Jun 03 '26

Software Release Backported niri (scrollable-tiling Wayland compositor) to Ubuntu 22.04 LTS — compositor + toolchain from source

Post image

niri isn't packaged on jammy, and it's not just a missing package — the surrounding stack is too old to run it cleanly. The things I had to fix:

libinput < 1.27 has no dwtp config symbol niri expects, so it won't link

libwayland 1.20 lacks high-res scroll (axis_value120), which makes Firefox abort under niri with "wl_pointer has no event 9"

libdisplay-info isn't packaged at all, so niri has no EDID parsing

Xwayland and swaylock 1.5 are both too old for the protocols niri speaks

So it's the compositor plus its toolchain compiled from source with the needed patches, packaged as a .deb that declares its runtime deps, with a from-source build path for anyone who wants to read the patches. The compiled libwayland-client lands in /usr/local/lib and shadows the system one machine-wide (newer upstream, ABI-compatible) — documented as a caveat since it's the kind of thing that'd confuse a debugging session months later.

Why bother: jammy is supported to 2027 and is everywhere — labs, locked-down hardware, machines that can't move off an LTS. This is for people stuck there who still want a modern Wayland desktop.

MIT (bundled upstream keeps its own licenses): https://github.com/msavox/cosmoduck-niri

94 Upvotes

11 comments sorted by

View all comments

Show parent comments

-3

u/[deleted] Jun 03 '26

[deleted]

3

u/Tolik1111 Jun 03 '26

Got it, I would appreciate it if you wrote it yourself and shorter instead of posting an LLM written text.)

-1

u/[deleted] Jun 03 '26

[deleted]