# cont8nuum

A Windows 8 style desktop for Linux, on Wayland. Start is a full screen
of live tiles, apps run full screen or snapped side by side, and the
charms come in from the right. It brings its own apps built in the same
style, and it works in XR glasses too.

![Start, with live tiles](web/public/img/start.png)

It's a whole desktop, not a theme:

- **c8**, the compositor (wlroots 0.20). It handles snapping, the edge
  swipes and hot corners, the switcher, screenshots and Snip, the lock
  screen, and XR glasses where every window is a screen of its own.
- **The shell.** Start, All apps, search, live tiles, the charms,
  toasts, the Settings flyout with its quick tiles, the switcher and a
  tray. It also brings a lock screen, a password prompt in the style of
  User Account Control (for sudo, ssh, git and polkit), and a picker for
  screen sharing. Stealth mode swaps your name, picture, PC name,
  networks and places for made-up ones, for screenshots and recordings.
- **c8ui**, the Metro UI toolkit the shell and apps are built on. It has
  pivots, hubs, app bars, flyouts, lists and grids, a text editor,
  pickers and semantic zoom, with touch and touchpad gestures
  throughout. Every app made with it works snapped to a quarter of the
  screen.
- **Apps.** PC settings, Files (also the system file picker), Photos,
  Video (3D and all-round videos too, each eye its own picture in XR
  glasses), News, Weather, Tailscale, Cirrus (for Bluesky), and Tile maker (your
  own Start tiles, and a Games page for Steam and Lutris).
- **Live tiles.** Clock, calendar, weather, now playing, processor,
  memory, network, battery and more. Any program can feed a tile over
  D-Bus, or with `c8tile` from a shell script.
- **A theme.** The Selawik font, a glyph icon theme, and an SDDM theme
  for the sign-in screen.

![Two apps snapped side by side](web/public/img/snap.png)

![In XR glasses: windows standing around you](web/public/img/xr-windows.png)

## Trying it

It's developed on openSUSE Tumbleweed, and package names below are
Tumbleweed's. Other distributions with wlroots 0.20 should work. Their
package names will differ.

For Debian 13, Ubuntu 26.04, Fedora 45 and openSUSE Tumbleweed there
are signed packages at [pkg.lowtide.sbs](https://pkg.lowtide.sbs),
which says how to add it (one file, then `apt`, `dnf` or `zypper
install cont8nuum`, with `cont8nuum-files` and the other apps as you
like), then pick cont8nuum at the login screen. They're built from
every change to main for now, not releases.

The same packages, and a tarball for Ubuntu 26.04, are made by CI on
every push: the newest are under the cont8nuum job on
[spindle.lowtide.sbs](https://spindle.lowtide.sbs/jobs/cont8nuum). The
packages are `cont8nuum_VERSION+ubuntu26.04_amd64.deb` (the desktop),
`cont8nuum-files_…` and one for each other app; install the ones you
want with `sudo apt install ./cont8nuum*.deb`, then pick cont8nuum at
the login screen. Debian 13's are the same with `+debian13`. For Fedora 45 and openSUSE Tumbleweed there are RPM
packages beside them, `cont8nuum-VERSION-1.fc45.x86_64.rpm` and
`…-1.opensuse.tumbleweed.x86_64.rpm`, with `cont8nuum-files-…` and the
other apps in the same way (`sudo dnf install ./cont8nuum*.rpm`, or
`sudo zypper in ./cont8nuum*.rpm`); those files aren't signed. Ubuntu's
tarball is
`cont8nuum-VERSION-ubuntu-26.04-x86_64.tar.gz`. It goes in
`/opt/cont8nuum`; its `README.txt` says how to install it, and
`PACKAGES.txt` which Ubuntu packages it needs. It's new and lacks VR in
XR glasses and the wallet.

The short way is `./install.sh`: it asks a few questions (install it
or only try it, which apps come with the desktop, which packages, the
wallet), shows the commands it will
run, and runs them. `./install.sh --dry-run` only shows them. The steps
by hand:

1. Install what it builds against. The full list, with what each
   package is for, is in [DEPENDENCIES.md](DEPENDENCIES.md):

   ```sh
   sudo zypper in gcc meson ninja \
   	wlroots-devel wayland-devel wayland-protocols-devel libinput-devel \
   	libxkbcommon-devel libpixman-1-0-devel fontconfig-devel \
   	cairo-devel pango-devel glib2-devel gdk-pixbuf-devel librsvg-devel \
   	libxcb-devel xcb-util-wm-devel pam-devel libpulse-devel libxml2-devel \
   	libsecret-devel polkit-devel libglycin-devel gexiv2-devel \
   	libarchive-devel mpv-devel \
   	Mesa-libGLESv2-devel Mesa-libEGL-devel libdrm-devel
   ```

2. Build everything into `.prefix` in this folder. Nothing gets
   installed:

   ```sh
   ./build.sh
   ```

3. Try it in a window inside your current desktop:

   ```sh
   export PATH="$PWD/.prefix/bin:$PATH" LD_LIBRARY_PATH="$PWD/.prefix/lib64:$PWD/.prefix/lib"
   export XDG_DATA_DIRS="$PWD/.prefix/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
   c8
   ```

4. To use it as your desktop, install it into `/usr/local` (sudo asks
   for your password). Then log out and pick cont8nuum in SDDM:

   ```sh
   ./build.sh --install
   ```

   The few files it puts outside `/usr/local` (PAM rules, portal
   settings) are listed at the end of [DEPENDENCIES.md](DEPENDENCIES.md).

The desktop (the compositor, the shell, PC settings, the live tiles)
runs without the apps. `./build.sh --apps files,photos` builds it with
only those, `--apps none` alone; the names are `files`, `photos`,
`video`, `news`, `weather`, `tailscale`, `tiles`, `lua` and `cirrus`.

VR games in XR glasses come with `./build.sh --xr` (or the VR
question in `./install.sh`): it fetches and builds
[Monado](https://monado.freedesktop.org/), the open OpenXR runtime, with
a driver for the glasses added. In XR, Monado then drives the glasses,
VR games play in the same space as your windows, and Start and the
charms come up over them. SteamVR's games run through
[xrizer](https://github.com/Supreeeme/xrizer), unpacked to
`~/.local/share/xrizer`. Other headsets (Index, Vive and the rest) are
leased to whatever runtime you run for them. The Monado build packages
are in [DEPENDENCIES.md](DEPENDENCIES.md).

## Using it

| | |
|---|---|
| Tap **Super** | Start |
| Type on Start, or **Super+S** | Search apps, tiles, settings and files |
| **Super+A** | All apps |
| **Super+Left / Right** | Snap the app in front to that side |
| **Super+Shift+Left / Right** | Move the divider between two snapped apps |
| **Super+Down** | Unsnap |
| **Alt+Tab**, **Super+Tab**, the top left corner, a swipe in from the left | Switch apps |
| **Super+C**, the right-hand corners, a swipe in from the right | Charms |
| **Super+I** | Settings |
| **Super+Q**, **Alt+F4** | Close the app |
| **Super+P** | Second screen: PC screen only, duplicate, second screen only, or XR |
| **Print**, **Alt+Print**, **Super+Print** | Screenshot of the screens or the app in front to the clipboard, or of the screens saved to Pictures |
| **Super+Shift+S** | Snip a part of the screen |
| **Super+Return** | Terminal |
| **Super+Shift+E** | Quit |

Every binding can be changed in PC settings, or in
`~/.config/cont8nuum/config.ini`. [The sample config](compositor/data/config.ini)
explains each setting.

## What's in this repo

| Folder | What |
|---|---|
| `compositor/` | The compositor, `c8` |
| `desktop/shell/` | Start, live tiles, charms, toasts, the lock screen, the password and polkit prompts, the screen sharing picker |
| `desktop/settings/` | PC settings, and online accounts |
| `desktop/widgets/` | Live tile providers, and `c8tile` |
| `toolkit/c8ui/` | The UI toolkit, and `c8-base` (pieces the apps share under the UI). `toolkit/c8ui/template/` is an app to copy and start from |
| `toolkit/lua/` | `c8-lua`: apps and live tiles written in Lua, with no build step; `c8-lua-new` starts one. [Its README](toolkit/lua/README.md) is the reference |
| `protocols/` | The Wayland protocols and D-Bus interfaces between the parts |
| `theme/` | Font, icons, the SDDM theme |
| `apps/files/`, `apps/photos/`, `apps/video/`, `apps/news/`, `apps/weather/`, `apps/tailscale/`, `apps/tiles/`, `apps/cirrus/` | The apps |
| `apps/lua/` | Small apps written in Lua: Calculator, Clock, Editor, Merge, Mines, Notes, Reversi |
| `xr/` | For VR games on XR glasses: the glasses' driver for Monado, and Monado, the OpenXR loader and xrizer from upstream (`./build.sh --xr`) |
| `web/` | The website, with accounts and settings sync (PHP and MariaDB) |
| `packaging/` | The package list, an RPM that holds the run-time dependencies, and a build of the oo7 wallet |
| `docs/` | Ideas for apps, and instructions for installing with an AI assistant |

`CLAUDE.md` is the detailed map of how everything works. It's written
for the AI assistant that helps build this, and it's the best
documentation there is for now.

## Status

It runs as a daily desktop, but it's one person's project and young.
Much of it has only been tried on one laptop. Expect rough edges,
especially with touch, multiple screens and XR glasses.

## Licence

All of the code is dedicated to the public domain under
[CC0 1.0](LICENSE). Use it for anything, no credit needed. The
exceptions are things that came from elsewhere, which keep their own
licences:

- The Selawik font (`theme/fonts/selawik`,
  `web/public/fonts`): Microsoft, SIL Open Font License 1.1.
- `protocols/wlr-layer-shell-unstable-v1.xml` and
  `desktop/settings/protocols/wlr-output-management-unstable-v1.xml`: wlroots
  protocols, under the licence at the top of each file.
- `desktop/settings/data/accounts/snail.zone.svg`: snail.zone's logo.
- `packaging/oo7/`: patches to [oo7](https://github.com/bilelmoussaoui/oo7),
  under oo7's MIT licence.
- [Lua](https://www.lua.org/) 5.4 is not in this repo, but where the
  system has no Lua 5.4 to build against the build downloads it and
  builds it into `c8-lua`: Lua.org, PUC-Rio, MIT licence.
- `build.sh --xr` builds [Monado](https://monado.freedesktop.org/)
  (Boost Software License 1.0), the Khronos
  [OpenXR SDK](https://github.com/KhronosGroup/OpenXR-SDK-Source)
  (Apache 2.0) and [xrizer](https://github.com/Supreeeme/xrizer)
  (GPL 3.0), which lets SteamVR's games run on Monado. None of their
  code is kept in this repo: `xr/openxr-sdk` and `xr/xrizer` are git
  submodules of upstream's own repositories, unchanged, and `xr/monado`
  is a submodule of our fork of Monado, upstream's history with our
  changes on top (branch `c8-xreal-one-pro-plus`): a fix from Monado's
  own later source, and one commit of ours that builds our glasses
  driver and changes its compositor; both are under Monado's licence.
  `xr/driver/` is ours (CC0).

Not affiliated with Microsoft. Windows is a trademark of Microsoft.

Made by lowtide: [lowtide.sbs](https://lowtide.sbs/),
lowtide.sbs@posteo.pm.
