an opinionated, touch-first Wayland desktop, after mainline
subline is a desktop for Linux tablets and 2-in-1s. Windows tile a grid of screen-sized cells, and every shell gesture follows your finger. The compositor, the window manager and the shell are one program, built on Smithay (Rust).
- Windows on a grid. The screen is one cell of a grid, 3×3 by default. A new window splits the cell you are in; nothing floats, and the other cells stay as they were. Why a grid
- Gestures that follow the finger. Three fingers pull the next cell in one to one; let go halfway and it springs back, so a glance costs nothing. Four fingers zoom out to the overview. Frequent actions start where the thumbs reach while both hands hold the device. Gestures
- One program. Top bar, dock, home, overview, on-screen keyboard (with Hangul), lock screen and notifications are drawn by the compositor itself, so they share one gesture recognizer. A settings app sits beside it, and every action is also a key binding and an IPC command (
subline msg).
The principles behind these, and what decides when they conflict, are in Design.
It began with an 8.8-inch Android tablet brought up on a mainline Linux kernel. Hyprland, GNOME and KDE are fine desktops, but in two hands none felt as easy as iPadOS or Android, and copying a mobile OS would not suit Linux apps, which keep running and want a window manager more than a split view. A grid that starts in the middle grew from there into a desktop of its own: besides the main line, a sub line. The story is in docs/story.md (in Korean). On macOS, the same grid of cells comes as rift-grid, a fork of rift.
A personal, experimental project. The config format and the IPC change without notice, and the documentation is in Korean. The places to start:
- Install: Debian/Ubuntu and NixOS
- Design: the principles and a map of the design documents
- Architecture: crates, the compositor's layers, the state model
- Testing: what to check a change with
- AGENTS.md: rules for agents working in this repository
Rust 1.95 or newer. On Debian or Ubuntu:
sudo apt install pkg-config libinput-dev libgbm-dev libegl-dev libdrm-dev libxkbcommon-dev \
libpixman-1-dev libseat-dev libudev-dev libwayland-dev libgtk-4-dev libadwaita-1-dev
cargo build -p subline -p subline-settings
On NixOS, build with the repository's flake.nix (nix build), or run cargo build inside nix develop. Installing it as a session and adding it to the login screen is in Install.
Tests are cargo test --workspace. The compositor's tests start a real subline --headless and drive it over IPC and as Wayland clients.
GPL-3.0-or-later. See LICENSE, and NOTICE.md for trademarks and the projects that informed the design.