A live, theme-coloured matrix rain wallpaper for Omarchy — drawn natively in QML, not played back from a video file, so it recolours itself the moment you switch themes.
Whole desktop, same thing running behind the bar:
It does not replace omarchy.background. The stock plugin keeps drawing
your wallpapers and keeps every upstream fix; this one claims the bottom
layer — above the wallpaper, below every window and the bar — and maps itself
only while the rain is your selected background. Select a normal wallpaper and
the surface is not mapped at all, so your desktop is bit-for-bit stock and this
plugin costs nothing.
omarchy plugin add https://github.com/nzkritik/omarchy-matrix-rain --enable --yesThen turn the rain on:
omarchy-shell matrix-rain select- Omarchy 4 with
omarchy-shell - ImageMagick — generates the picker entry
Both ship with Omarchy. inotifywait is used when present; without it the
plugin falls back to polling.
The rain appears as an entry in your normal background picker — double-click an empty part of the desktop, or Menu → Style → Background — under every theme, and it takes the theme's accent colour.
omarchy-shell matrix-rain select # the rain
omarchy-shell matrix-rain status # what is selected, from where, and idle/playing/paused
omarchy-shell matrix-rain lockState # whether the pause-while-locked wiring found the lock pluginAny other wallpaper is drawn by the stock background plugin exactly as before.
The picker only lists still images, so the rain is represented by a preview PNG
written into ~/.config/omarchy/backgrounds/<theme>/. The picker reads that
folder live each time it opens, so the preview has to already be on disk.
The plugin therefore seeds a preview for every installed theme shortly after the shell starts, and again after any theme change so themes installed later are picked up. Without it the entry only existed for themes you had opened since installing the plugin, and switching to a new theme left a ~1s window — longer than it takes to go from switching theme to opening the background picker — in which the rain was silently absent from the list.
The sweep is idempotent and stamped per theme: about 3s the first time, and a
tenth of a second of stat calls after that. A theme with no readable accent
still gets an entry, in a neutral grey. You can run it by hand:
~/.config/omarchy/plugins/nzkritik.matrix-rain/bin/omarchy-matrix-preview --allA session lock covers every layer-shell surface, so a locked screen hides this wallpaper completely — and the lock screen blanks the display a few seconds after that. Animating behind it is wasted work, so the rain freezes while the session is locked (and while the lock preview is up) and resumes on a successful unlock.
It freezes mid-fall and resumes from exactly where it stopped, rather than restarting, so unlocking never shows the screen filling from the top. Measured on a 4K display, the shell drops from roughly 9% CPU to none at all for as long as the lock is up.
The lock plugin is found through the shell's service table, and a clone is
resolved by resolveEnabledId, so this keeps working if you customise the lock
screen. If no lock plugin is found the rain just keeps running —
matrix-rain lockState reports attached or detached.
The rain is one fragment shader: every column is a function of time worked out on the GPU, so the CPU only advances a clock, 30 times a second. Measured at 1920x1080, that is about 2% of a core, against about 25% for the earlier version, which moved a stack of text items per column.
Where there is no GPU to use (a software-rendered scene graph, or a shader
that fails to load), the rain falls back to that text-item renderer on its own.
It looks the same and costs more. The journal says
matrix rain: shader unavailable, falling back to the CPU renderer when that
happens.
Making the lock screen itself draw rain — as opposed to pausing the wallpaper
behind it, above — is a separate plugin,
Matrix Lock. It has to clone
and patch the built-in omarchy.lock plugin, which is a good deal more invasive
than a wallpaper, so it is kept out of this one — install it only if you want
it, and nothing here changes either way.
Every knob is a readonly property at the top of MatrixRainGpu.qml: glyph
grid pitch, fall speed range, trail lengths, how often glyphs mutate, and the
alphabet itself. MatrixRainCpu.qml has the same knobs for the fallback. Edit
and run omarchy restart shell.
| Property | Default | What it does |
|---|---|---|
cell |
16 | Glyph grid pitch in px. Smaller is denser |
minSpeed / maxSpeed |
2.5 / 8.0 | Fall speed range, in grid rows per second |
minTrail / maxTrail |
14 / 48 | Glyphs per falling stream |
churn |
0.045 | Glyph flickers per second, per glyph (churnInterval, ms between mutations, in the CPU version) |
alphabet |
katakana + digits | The glyph set |
After changing the look, refresh the picker thumbnail so it matches: select the rain, clear the screen or switch to an empty workspace, and run
~/.config/omarchy/plugins/nzkritik.matrix-rain/bin/omarchy-matrix-preview --captureOmarchy's picker can only list still images, so the rain is represented by a
preview PNG named zz-matrix-rain.png, written into a theme's user background
folder — a directory the stock picker already scans. Selecting it symlinks that
path like any wallpaper, and the plugin recognises the name and draws the live
effect instead of the still.
Nothing overrides a packaged command and there is no hook to install: the plugin
watches ~/.local/state/omarchy/current/theme.name, re-tints the current theme's
preview when the theme changes, and seeds every other installed theme ahead of
time — see Every theme, from the first time you open it above for why that
matters.
Two consequences: omarchy theme bg next cycles through the rain along with
that theme's other backgrounds, and uninstalling leaves the preview files
behind — see below.
theme.name, colors.toml and the background link are predictable paths any
process running as you can replace, so the preview script treats them as
untrusted in both directions.
- Every read goes through one bounded, no-follow, non-blocking helper, so a symlink is refused, a planted FIFO returns instead of wedging the process, and a swollen file cannot be pulled in whole.
- The theme name is validated before it is used as a path component, so it
cannot walk the preview directory out of
~/.config/omarchy/backgrounds/. - Every write is staged in the destination directory,
fsynced, and committed with an atomic rename, after refusing any destination that is a symlink or not a regular file — so a link planted at the preview cannot redirect the write into another of your files, and an interrupted run cannot leave a half-written wallpaper behind. - The shell service itself never opens any of these paths. It watches for change events by name and shells out to the script, so a hostile file can at worst stall a short-lived child, never the long-lived shell.
omarchy plugin remove nzkritik.matrix-rain --yes
find ~/.config/omarchy/backgrounds -name zz-matrix-rain.png -delete
rm -rf ~/.local/state/omarchy-matrix-rain| File | Role |
|---|---|
Service.qml |
The bottom-layer overlay, the background watcher, preview upkeep, and the matrix-rain IPC target |
MatrixRain.qml |
The rain: picks the GPU renderer, or the CPU one when there is no GPU scene graph or the shader fails |
MatrixRainGpu.qml, rain.frag |
The GPU renderer: a glyph atlas and one fragment shader with the head/body/tail gradient off Color.accent |
rain.frag.qsb |
rain.frag compiled for Qt 6, which only loads precompiled shaders. tools/build-shaders.sh rebuilds it, byte for byte |
MatrixRainCpu.qml |
The CPU fallback: falling columns of text items |
bin/omarchy-matrix-preview |
Writes and tints the picker entry, for the current theme or every installed one (--all) |
The overlay uses an empty input region (mask: Region {}), so clicks fall
straight through to the layer underneath and double-click-to-open-the-picker
keeps working. The renderer sits behind a Loader source rather than an
inline component, so nothing is instantiated while another wallpaper is
selected.
- This is not Omarchy's screensaver behind your windows.
omarchy screensaverrunsttfxin a terminal, and a terminal is an xdg-toplevel, which Hyprland can never stack below the background layer. The effect is reimplemented in QML here for that reason.
MIT

