A thought experiment for anyone with more than one computer on the desk. What if one small Rust program, tucked a floor below whatever draws your windows, gave you one mouse and one keyboard for all your screens at once? And what would it have to promise before you trusted it?
The best tool is the one you don't notice until you try to work without it.
The desk
Four mice too many
Sit down at a desk with four computers on it. Each has its own monitor, its own keyboard, its own mouse.
You are typing on the laptop, you glance at a chart on the second screen and want to scroll it. Your hand reaches for a mouse. The wrong one. The cursor twitched on a completely different screen, and you hunt for where it went.
Now take three keyboards and three mice off the desk. Leave one of each. You push the mouse to the right, the cursor reaches the edge of the screen and... doesn't stop. It slides onto the neighbouring monitor, even though a completely different computer is running there. The keyboard follows. You type where you look.
Four computers, one desk under your hand.
Does the picture work for you? It isn't new. Programs like this have existed for years: Synergy, Deskflow, Barrier, lan-mouse. The catch is somewhere else. It is in where such a program lives.
Who asks the compositor for permission
Picture a computer as a house with floors. At the bottom is the cellar: the mouse and keyboard, the hardware.
Above the cellar lives the kernel, which turns every twitch of the mouse into an event. Higher up lives the compositor, the program that draws the windows and decides which one gets your click. At the very top are the applications.
The well-known input-sharing programs live on the top floor, next to the applications. To grab the cursor or feed motion to another computer, they have to knock on the compositor's door and ask. On newer Wayland desktops that happens through so-called portals, the official windows for asking for access.
But not every compositor has such a window. Hyprland doesn't. Where there is nobody to ask, the program simply doesn't work.
What if you moved in one floor lower, where the compositor never looks, and didn't ask it at all?
One floor down
Before anyone sees the motion
Take the stairs down. Between the kernel and the compositor there is a narrow spot that every mouse and keyboard event passes through.
The program that sits here tells the kernel: "this device is mine now." From that moment the compositor sees not a single movement from the mouse. When the cursor is meant to stay on this computer, the program hands the motion back through a virtual device that the compositor takes for an ordinary mouse. When the cursor crosses to the neighbouring screen, the motion travels over the network to that computer, where the same program feeds it into the same kind of virtual device.
The compositor, on both sides, knows nothing. It gets mouse motion like always. You don't have to ask it for anything, so it doesn't have to know how to answer.
Sounds like a trick? It was tested on three different compositors: old X11, GNOME on Wayland, and Hyprland, which has no portal at all. On each of them a test mouse sent the same burst of motion three times. A second, independent reader of the same device saw 74 events before the grab, 0 during it, and 74 again after release. And the compositor really did hold that device open, so there was something to cut off. Three compositors, the same numbers three times.
Four microseconds
Fine, but every floor on the way adds some delay. What does the detour cost?
- Typical (p50): 4.3 µs. That is the path of a real mouse through the program.
- 99 in 100 movements: at most 14.3 µs. That is the tail of the measurement (p99).
- One frame of video: 16.7 ms at 60 Hz.
- The gap: ~3,900×. A frame lasts that many times longer than a typical detour.
The measurement is from 14 September 2026 on Hyprland, a real mouse going through the daemon; the frame time and the ratio are calculated.
A microsecond is a millionth of a second. Before the monitor finishes drawing a single frame, a mouse movement could pass through this program several thousand times. The person holding the mouse during the measurement said it in two words: "no difference."
The fastest floor in the house is the one nobody notices.
Fear
A program that hears every password
Stop now and feel a slight chill. Because you have just let someone into the cellar who hears every key you press.
Every password. Every message. Every PIN. And that someone has a cable to the network, because it has to send motion to the neighbouring computers.
Think about what someone could do who eavesdrops on that conversation or forges it. They don't have to crack any password. It is enough to type keys on your computer as if it were your keyboard. Open a terminal and write whatever they like in it. As you.
Whoever has your keyboard has your computer.
That is why the question has a second half. Not only "what if". Also: what would you demand before letting such a program in below the compositor?
What you would demand
Try to write your own list. I will put mine next to it, the one the design started from.
- Separate the ears from the mouth. The part that touches the mouse and keyboard has no network access. The part that talks to the network has no access to the devices. Each runs under its own system account, neither is root, and only a narrow bridge connects them.
- Encrypt, and check who is speaking. The computers talk over a Noise IK channel, built on the same handshake pattern as WireGuard. Every computer knows the others' keys in advance, and a stranger's key doesn't get past the greeting.
- Don't trust on first meeting. A new computer joins after you type in a code, not because it introduced itself. The right "I may control that one" works in one direction only and is granted for each pair separately.
- Build a fence. The network process is forbidden from talking to the whole world, except the addresses of the other computers in the fleet. The prohibition is enforced by the system, not by the program itself.
- The clipboard is a separate room. Copying text and files between computers is done by a third process, locked by Landlock in a cage of allowed paths. Every direction is off by default.
- Sign what you install. Every release is signed with a key kept on a YubiKey, and the signature requires touching the key. Without it no computer accepts a new version.
- Leave an emergency exit. Right Ctrl, Right Shift and Pause pressed together bring the cursor back to the computer you are sitting at, even without the network.
- Let yourself be checked. The security review of 29 October 2026 found nothing critical and described ten important weaknesses. All ten have fixes today on every computer. Two of them narrow the problem instead of removing it completely, as described below.
And the language? Rust. Not because it is fashionable, but because it rejects, at compile time, a whole class of memory errors that many break-ins start with. The exceptions you can't avoid when talking to the kernel have to be explicitly marked in the code with the word unsafe, so you know where to look hardest. A program that hears your passwords shouldn't have an overflowing buffer in it.
A side note: the project's gates today are 3,553 automated tests, run before every merge. A few of them guard odd things, such as the documentation naming every module of the code. Because a description that doesn't keep up with the code can also get someone lost.
Where this story simplifies
- Secure doesn't mean unbreakable. The list above closes the known routes. A computer where a malicious program already runs with your privileges has a problem no matter what you share the mouse with. A fleet member that has itself been taken over can still, in some situations, grab the cursor. Those cases are named and waiting in the queue.
- The review was in-house. The security review was done inside the project; an independent auditor did not commission it.
- Linux only. All the measurements come from Linux. Windows and macOS have different cellars, and the program would have to be built there from scratch.
- One measurement, one hand. The figures from "Four microseconds" come from a single measurement session, and "no difference" is one person's impression, not a study.
- The house with floors is an analogy. The real path of an event has more stops, and the line between the kernel and the compositor is not a floor but an agreement about who opens which device.
The thalamus
This is not a hypothesis
I have to confess something. This program is not a thought experiment. I built it because there are four computers on my desk.
Synergy, which I used, lives on the top floor, and on a desktop without a portal there is nobody to ask for permission. Since 27 October 2026 Synergy has been silent on my desk, and this program shares the mouse and keyboard, on all four machines: under GNOME and KDE, with Wayland and X11, without asking any desktop for permission.
For now you can't download it. First an installer has to exist that will lead a stranger by the hand, and then it will go only to invited people. In the next parts I will tell you how it works from the inside: how the cursor knows which screen it is on, how the computers agree on who holds the keyboard right now, and what signing a release with a key you have to touch looks like.
Under the cortex
Close your eyes and touch a table with your fingertip. The signal from the fingertip runs along a nerve to the spinal cord, then up to the brain.
But before it reaches the cortex, the folded layer that understands what you feel, it passes through a small structure deep in the middle. So do light from the eyes and sound from the ears. Almost everything you feel, except smell, goes through it first.
That place doesn't think for the cortex. It does something more modest and more important: it receives what came from the senses and sends it on to where it should go.
That structure is called the thalamus. In Latin thalamus, from the Greek θάλαμος, an inner chamber.
Look once more at the program from this story. It lies below the compositor, as the thalamus lies below the cortex. All input passes through it before anything else sees it. And it decides on which computer each movement and each key should land.
That is why I named it thalamos.
You, too, have one small node in your head that divides the world among the parts that understand it.
If you had to let such a program in below your desktop, what would you fear most? And what would you want from it that no tool you use today gives you? Write to me. The next parts will answer what you ask.
This text was written with AI assistance (Claude); the facts and figures come from the project documentation and the sources below. The program, the measurements and the design decisions are my own work.
Originally written in Polish, with figures: https://kodown1k.github.io/czytelnia/jedna-mysz-cztery-komputery/
Sources: the project documentation of thalamos (the author's repository, state of 25 November 2026): the 14 September 2026 measurement (device capture on three compositors, latency of 4.3 / 14.3 µs), the process and account architecture, the firewall, the clipboard with Landlock, release signing, the 29 October 2026 security review with the state of fixes; the Noise Protocol Framework and the IK pattern in WireGuard; Landlock, the Linux kernel mechanism for confining a process to a list of allowed paths; the XDG portals (InputCapture, RemoteDesktop) through which programs ask a compositor for access; Thalamus (Wikipedia), a relay of sensory signals to the cortex, with smell taking another route; Rust, memory safety checked at compile time.
Top comments (0)