Skip to main content

Module grid

Module grid 

Expand description

Spatial grid model of the client windows.

The tiler in super arranges n client windows on a grid of cols * rows cells, with the final row possibly stretched to span the full width when n % cols != 0. This module mirrors that layout as a pure data structure so the enable/disable submenu can navigate the cells spatially with arrow keys and hjkl.

Structs§

ClientGrid 🔒
Spatial-grid view over the tracked client PIDs.
GridCell 🔒
One client window’s position on the spatial grid.

Functions§

grid_dimensions 🔒
Compute the grid dimensions for n clients on a workspace with the given aspect ratio.