tpt-w-workspaces
RustPersistent virtual-desktop & workspace manager for Windows and Linux — remembers app-to-desktop assignments, restores window geometry, and pauses background apps on inactive workspaces. Dual-licensed MIT OR Apache-2.0.
Languages
tpt-workspaces
Advanced Virtual Desktop & Workspace Manager — persistent workspaces for Windows and Linux.
The problem
Windows Virtual Desktops don't remember which apps belong where. Linux desktop environments (GNOME, KDE) have better workspaces, but lack deep state management.
The solution
tpt-workspaces provides persistent workspaces that:
- automatically move specific apps to specific desktops/workspaces,
- remember window geometries per workspace,
- pause (freeze) background apps while their workspace is inactive, freeing RAM and CPU.
On Linux, window placement is enforced through Wayland protocols. On Archon, workspaces map onto capability domains, and inactive workspaces can be frozen at the microkernel task-suspension level.
Status
Early development. The platform-agnostic core (domain model, rule matching, workspace transitions, TOML config with validation and live reload, SQLite state store) is implemented and tested. Platform backends, the daemon, and the GUI are not yet implemented; see todo.md for the phased plan.
Configuration
Workspaces and app-assignment rules live in a user-editable TOML file:
schema_version = 1
[[workspace]]
id = "dev"
name = "Development"
[[workspace]]
id = "chat"
[[rule]]
name = "Editor"
executable = "Code.exe" # case-insensitive file name
workspace = "dev"
[[rule]]
name = "Slack"
window_class = "Slack" # window class / app id
workspace = "chat"
Rules are evaluated in order; the first match wins. Validate a file with:
cargo run -p tpt-workspaces-cli -- check path/to/config.toml
Building
Requires a recent stable Rust toolchain.
cargo build --workspace
cargo test --workspace --all-features
Crate layout
| Crate | Purpose |
|---|---|
core | Platform-agnostic domain model, rule engine, transitions, config, storage traits |
backend-windows | Windows Virtual Desktop backend |
backend-linux | sway (wlroots) backend via sway IPC |
gui | Status window and tray icon (tpt-workspaces-gui); settings editing is planned |
cli | tpt-workspaces command-line tool |
Linux support
Only sway is supported today. See docs/linux-support.md for the GNOME and KDE status and the sway limitations.
Installation
Release archives, a Windows MSI and a Debian package are published on the releases page when a version is tagged. See docs/releasing.md.
License
Dual-licensed under either of
at your option. Copyright (c) 2026 TPT Solutions.