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§
- Client
Grid 🔒 - Spatial-grid view over the tracked client PIDs.
- Grid
Cell 🔒 - One client window’s position on the spatial grid.
Functions§
- grid_
dimensions 🔒 - Compute the grid dimensions for
nclients on a workspace with the given aspect ratio.