_
___ ___ _ __ ___ | |_ __ __ _ __ ___ ___ ___
/ __| / __|| '__| / _ \ | __| \ \ /\ / /| '_ ` _ \ / _ \ / __|
\__ \| (__ | | | (_) | | |_ \ V V / | | | | | || (_) |\__ \
|___/ \___||_| \___/ \__| \_/\_/ |_| |_| |_| \___/ |___/
welcome to the machine. trust no one.
scrotwmos is a tiling window manager with increasing levels of paranoia for application separation. At the bottom it is good old spectrwm. At the top the window manager is the operating system, and the box is one you can carry across a border.
Why
I wrote scrotwm, which became spectrwm, and I have used it since v0.0.1, when all it did was tile a few windows. My productivity shot up the day I stopped moving windows around, focusing, unfocusing, and right-clicking all day. The traditional desktop is a failed paradigm. It was invented for people used to stacks of paper and filing cabinets, and it barely helped them. Most people use one, two, maybe three windows on a screen. A tiler arranges them and gets out of the way.
The other thing I have wanted for a long time is real separation between the things I do on a computer. Security and usability have always been mutually exclusive, mostly for good reasons. I don't buy that it has to stay that way. I love the QubesOS project, but I cannot use it because of its desktop. I also actively dislike Xen, though Xen beats no Xen.
So: Qubes-style separation with spectrwm-style usability. I wrestled with this for years. It was simply too big to build part-time. With the advances in AI I can focus on the code that matters and offload the boilerplate to the thinking rock. This is it.
The workspace is the boundary
You already do this. Workspaces 1 to 3 are work, 4 is banking, and 5 to 10 are yolo-doomscrolling.
scrotwmos turns that habit into a wall. Every workspace belongs to a session, and a session is a container or a VM with its own uid, its own files, and its own processes. Start a browser on 4 and it is the banking browser. There is no "run this sandboxed" step to forget, because there is no other way to start it.
Now try to drag the banking window over to doomscrolling. The compositor says no. Your keys go to the window you are looking at and nowhere else, and the clipboard stays in its session too.
Need a file on the other side? Drop it in /share, the one
directory a world's sessions can share. You put it there on purpose, so
nothing crosses by accident.
Flipping workspaces is the policy.
A box you can cross a border with
They hand you back your laptop and tell you to unlock it. Sure. You type a username and a password, a desktop comes up, the browser works, and your boring files are right there. As far as anyone at that desk can tell, that is the whole box.
That was the decoy.
There is no boot menu. The username you type picks the world, and every world is locked with its own key. Nothing at the prompt tells the decoy from the real thing, and nothing inside the decoy can see the real thing. The decoy is a VM that sees the internet and nothing else.
They get a laptop with a browser on it. You keep everything else.
Backups that just happen
Almost no one backs shit up. Not because they don't care, but because it is hard, and hard means never.
So the box does it for you. Every hour your home changed, it takes a point: your home exactly as it was at that hour. It keeps one for every hour of the last day, one a day for a week, and one a week for two years. Deleted something at 3 p.m.? Open the 2 p.m. point in F11 and copy it back. That is time travel, and you did not set up a thing.
Give it a USB disk, an NFS export, or an SMB share, and every point gets copied there too, encrypted. The place never sees a byte in the clear. When the box dies, or gets stolen, you install on a new one, type your password or the 12 words you wrote on paper, and your world comes back.
Who this is for
People who live in a tiler and would rather not get owned by the tab they opened at 2 a.m. People who carry their work across borders. If you want icons and a wallpaper, this isn't it. If you want a box that never says no, this isn't it either. It is paranoid on purpose.
How paranoid do you want to be?
Level 0, the window manager. Good old spectrwm, on X11 or Wayland, on whatever you run now. On X11 nothing changes. Wayland users can finally trash their "desktops" and use something sane.
Level 1, byol. Bring your own Linux. It is plain Void with an encrypted root, one password, TPM unlock, hourly snapshots of the whole root, and your servers running in VMs. That makes it a damn good server. It is still your Linux, though, so hardening it is on you, and that part is hard.
Level 2, containers. Each workspace's session runs in a container with its own uid, namespaces, seccomp, and cgroups, and with zero capabilities. Pop the browser and you get a uid that isn't even in passwd, a read-only root, and not one capability.
Level 3, virtual machines. Or the session runs in a VM, on swm-vmm, our own KVM hypervisor, with a signed guest kernel. No QEMU gets anywhere near a session.
Level 4, tinfoil. Now the fun part. The compositor becomes the operating system, and the host you had to harden at level 1 is gone. dom0 runs three programs. There is no shell, no udev, and not even a network driver. You power on, type a username and a password, and you are in a world. Worlds, the decoy, and A/B updates all live up here.
Even the hardware is walled off
A network card or a GPU can read any memory it wants by DMA, unless the IOMMU says no. So dom0 turns on VT-d or AMD-Vi and makes it say no.
dom0 doesn't even have a network driver. The net VM takes the cards whole and runs DHCP, Wi-Fi, the router, and the firewall. A hole in a Wi-Fi driver owns the net VM, not you.
Everything else gets the same treatment:
- net VM: the cards, the uplink, and the firewall.
- gfx VM: the sessions' Vulkan, each in its own jail.
- screen VM: draws the windows.
- ttvm: ships your backups, and holds no key to them.
- session VMs: your stuff. Got a second GPU? Hand it to one of them whole.
- the decoy: always a VM.
And a USB stick that suddenly decides it is a keyboard? It doesn't type a thing until you let it in through F7.
Features
- A/B updates: a new release lands in one slot while the old one waits in the other, so a bad release costs you a reboot.
- A rescue world, for when you broke it anyway.
- The world mark: the lock screen shows your world's own words and color, which a fake lock can't.
- A network per session: banking gets the internet, not your LAN.
- Optional TOTP codes: the box proves itself to your phone before you type a password.
- Twelve tabs, MOD+F1 to MOD+F12, because dom0 has no shell.
- One stick installs, updates, and rescues it, unattended from a plan if you want.
- byol runs your servers as VMs, from Void, Fedora, and OpenBSD images checked against their own signatures.
The rest is on features. Pictures are on screenshots.
Start here
Download, install, and in one sitting you have a browser on 1 and a shell on 2: hello world. The threat model says what it stops and what it doesn't. The rest is in the docs.
None of this exists without Void Linux. The dom0 is built in a Void musl root, the stick boots our own signed kernel with a root made of Void's packages, and byol is plain Void, runit and all.
Just because you're paranoid doesn't mean they aren't watching you.