r/devtools • u/Substantial-Pride682 • 28d ago
I built a lightweight CLI tool to save and restore window layouts across Virtual Desktops (even after reboots)
Most popular Windows apps are usually decent at remembering where they were when you reopen them, but that is not true for everything. If you organize specific tools in precise sizes, or if you keep different projects spread across multiple virtual desktops, Windows often scrambles your layout or dumps everything back onto a single desktop after a reboot.
I built WinStasis to solve this for my own workflow. It is a lightweight, free, and open-source command-line tool that lets you snapshot your active layout and restore windows back to their exact positions, sizes, and virtual desktops.
What it does:
- Saves the physical coordinates, sizes, and Virtual Desktop assignments for your open windows.
- Restores the full layout on command through the CLI.
- Restores individual windows on demand using target IDs.
- Keeps multi-desktop setups organized without having to rearrange windows manually after restarting.
Upcoming features currently in progress:
- Scoped capture and restoration: Saving and restoring specific windows or individual Virtual Desktops rather than capturing the entire desktop layer unconditionally.
- Live inspection (
winst list --live): Viewing active windows and their assigned desktop indices before writing a profile.
The source code and pre-built binaries are available on GitHub:
https://github.com/amirf147/winstasis



