Upstreaming a desktop's worth of customisations to Noctalia
On this page
My workstation runs Noctalia on Niri, and like any long-lived desktop it had accumulated a drawer full of local patches: a graph that could finally be hovered, a lock screen that could finally show you your own password, an emoji picker that deserved an audience bigger than one. This post is the record of turning that drawer into upstream contributions. What was worth sending, what wasn’t, and what the process taught me about being a good citizen of a small, fast-moving project.
The rules I set myself
Before writing any code I fixed a few constraints, because “dump my patches upstream” is how maintainers get burnt:
- Start from their
main, not my pin. Every contribution was built in a fresh worktree off current upstream, even where my local patch already worked. - One PR, one idea. My graph patch was secretly two features, a pointer-events primitive and a crosshair renderer, and they went separate ways.
- Read the room before proposing product. Where a change altered semantics rather than exposing a primitive, I opened a design discussion instead of a PR.
- Local patches stay until upstream merges. Every local patch in my infrastructure repo remains the known-working fallback; deletion is a post-merge chore, not a pre-PR one.
The contributions
1. Pointer tracking for declarative graphs (noctalia#4125)
Noctalia’s plugin UI vocabulary has a ui.graph node, a beautiful
GPU-rendered line graph that, as of last week, could not tell a plugin
where your mouse was. No hover inspection, no scrubbing, no tooltips:
the most basic interactions a time series implies were impossible.
The patch adds onPointerMove/onPointerLeave callbacks by reusing the
exact machinery a previous merged PR (#3470, hover callbacks for
box/image/row/column) introduced: a hover-only InputArea wrapper,
created only when a graph declares a callback, reporting coordinates
normalised to [0,1] over the graph’s content area, coalesced to one
pending callback per script frame so a fast pointer can’t flood the
plugin’s event queue. Graphs that don’t opt in get a bare Graph node
and pay nothing.
The local history of this one is instructive: before the primitive existed, my glucose panel had degenerated into twenty hand-positioned mini-graphs, one per time slice, each wrapped in its own hover strip. A mosaic pretending to be a chart. The right fix was never more Luau; it was one small C++ capability.
2. A graph cursor marker, proposed not pushed (noctalia#4126)
The follow-up, a ringed dot and crosshair rendered by the graph shader at the inspected position, I deliberately did not PR. There is a real capability gap, since only the shader knows the curve’s interpolated y at a given x and a plugin cannot reproduce the Hermite maths without duplicating shader internals. But the API shape, whether one cursor, free-form markers, annotations, or per-series decoration, deserves maintainer input. So I opened a design proposal issue that describes the working prototype, and now I wait.
3. Lock screen password reveal (noctalia#4127)
The Wi-Fi prompt in the control centre has an eye toggle to check a long password; the lock screen, where a typo costs a full retype, had nothing. This PR ports the identical interaction to the one password field that lacked it: ghost eye/eye-off button, concealed by default, reveal state reset on every lock, disabled while authenticating. Forty-nine insertions, zero deletions, and honestly the most satisfying diff of the campaign.
4. Launcher run-or-raise, a discussion not a diff (noctalia#4131)
macOS-style “activate an app from the launcher focuses its existing window” is a product-semantics change with real traps: matching rules must be the same algorithm the dock uses (never two subtly different matchers), multi-window selection must be predictable across compositors (ext-versus-wlr ordering on Hyprland bit a neighbouring PR), and default-on would break toggle-style apps. I have a working implementation, but I opened a design proposal quoting the cautions a maintainer raised on an adjacent PR instead of shipping code at them.
5. Emoji picker → community-plugins (community-plugins#502)
The strongest standalone candidate: a Raycast-inspired emoji and Unicode symbol picker with ~4,000 entries, symbol aliases so “euro” ranks € above 💶, recency-weighted frequently-used lists, keyboard-first navigation, and three panel sizes. Porting it upstream meant honest surgery:
- The paste-after-copy path was my machine: it shell-wrapped
niri msg, matched my terminal’s app-id, droveydotool. The community version ships none of that, because Wayland focus security makes a portable auto-paste impossible, and instead offers a user-configuredpaste_commandwith a documented{emoji}placeholder. - A committed, deterministic dataset (generated from pinned CLDR 47 + Unicode 16.0 sources, generator shipped alongside) rather than build-time magic, with the provenance written out for reviewers.
- Their PR-template enforcement bot closed my first attempt within minutes, correctly, since my description used my headings instead of theirs. Lesson: on a repo with robots this strict, read the robot.
6. Small tailscale plugin settings (community-plugins#503)
Two opt-in widget settings for davemhammer/tailscale, one to hide the
widget when healthy and one to flag problems in red, ported onto current
upstream from a local patch. A deliberately boring PR: defaults
unchanged, version bumped, README table extended.
7. Dual-shell Niri documentation (noctalia-docs)
The genuinely non-obvious knowledge in my Niri config was never the
config itself. It was the failure modes of running two shells on one
compositor: both claiming org.freedesktop.Notifications and the tray
host, and the seductive systemd trap where a wants symlink on niri.service (which runs in every Niri session) quietly starts your
second shell inside your first. The write-up went upstream as a docs
PR, with
the paths made generic. Since then Noctalia folded its docs into the
main repository and reset the old docs repo to an automatic mirror;
every pull request in it now 404s, and the recipe is not in today’s
Niri docs. The branch in my fork is the surviving copy.
8. PAM service configurability (noctalia#4132, issue #4133)
My lock screen ran on Ubuntu via a Nix-built binary, whose nixpkgs-linked
libpam cannot parse the distro’s @include-based PAM stacks, so every
correct password was rejected, silently. The local workaround shells out to pamtester, which I did not propose upstream. Instead: a small PR
making the PAM service configurable ([lockscreen].pam_service,
default "login", which is the fix direction an existing issue had
asked for), plus a properly documented packaging issue explaining the
mixed-libraries failure mode for whoever hits it next.
What I deliberately did not send
- The per-panel animation-duration manifest key. Upstream’s design routes timing through named tokens plus one global speed setting; a raw-milliseconds manifest field fights that design, creates API compatibility obligations, and serves taste rather than capability. Kept local, cheaply.
- The
pamtestershell-out. A distro workaround dressed as a feature. Upstream got the investigation and a config knob instead. - My context daemon (Home Assistant → bar/launcher glucose and calendar bridge). The core is already config-driven and separable, but its licence is proprietary, its panel was blocked on the graph pointer-tracking PR at the time (#4125, since merged), and “should this exist publicly” is a product decision about my health data’s framing, not a mechanical port. Deferred with conditions written down.
What the campaign taught me
The patch is evidence, not the implementation. Twice the local patch shipped the wrong upstream API (a raw-ms duration; a bundled cursor renderer), and twice the right move was redesigning around the project’s existing architecture.
Boring is a feature. The lock-screen PR is forty-nine insertions reusing an in-shell pattern. It will review in minutes. The emoji picker took a week of evenings because “boring to review” for a plugin means provenance, behaviour accounting, and graceful degradation, all work that happens before the diff.
Robots read PRs before humans do. Template enforcement bots are strictness encoded; comply first, then be interesting.
Know when you’re asking a question versus proposing an answer. Two of the eight contributions are discussions, and that ratio feels right for a project you’ve just met.
Status
At the time of writing: three code PRs and one docs PR open on the Noctalia side, two plugin PRs open on community-plugins, two design proposals awaiting maintainer input, one packaging issue filed. Local patches all still in place. They retire one by one as their upstream counterparts merge and my pinned shell moves to a revision containing them.
Update, 2026-09-17: noctalia#4125 and community-plugins#502 have merged. Still open: noctalia#4127, noctalia#4132, community-plugins#503, and the two design proposals. The docs PR from section 7 is untraceable since the docs repo reset.