I built a tiling window manager for Windows in Rust

rust dev.to

I got tired of manually snapping windows around so I built tidewm —
a tiling window manager for Windows 10/11 that arranges everything
automatically.

You open an app, it tiles. You close one, everything redistributes.
No clicks, no dragging, no thought required.

What it does

  • Automatically tiles every resizable window
  • 4 layouts: tall, wide, bsp, monocle — switchable at runtime
  • Smooth animations
  • ~0% CPU at idle, 2-4 MB RAM
  • Windows that can't be resized (dialogs, fixed-size tools) are left untouched

The invisible border problem

Windows 10/11 add a 7px invisible border around every window for the
DWM shadow. Without compensation, windows that should be flush have a
visible gap. tidewm corrects for this automatically.

Hotkeys

Alt + H/L to focus, Alt + 1/2/3/4 to switch layouts, Alt + Q to quit.
Modifier is configurable.

Animations

Cubic ease-out curve. We tried spring physics at some point.
It looked terrible. lmfao.

GitHub: https://github.com/hazedxz/tidewm

Source: dev.to

arrow_back Back to Tutorials