Documentation
¶
Index ¶
- func CalculateGrid(numWindows int) (rows, cols int)
- type Rect
- type Tiler
- func (t *Tiler) CycleActiveLayout(delta int) (string, error)
- func (t *Tiler) GetActiveLayoutName() string
- func (t *Tiler) GetTerminalCount(monitorID int) int
- func (t *Tiler) GetWorkspace(monitorID int) *Workspace
- func (t *Tiler) PreviewLayout(layoutName string, duration time.Duration) error
- func (t *Tiler) SetActiveLayout(name string) error
- func (t *Tiler) TileCurrentMonitor() error
- func (t *Tiler) TileWithOrder(windowOrder []uint32) error
- func (t *Tiler) UndoCurrentMonitor() error
- func (t *Tiler) UpdateConfig(cfg *config.Config)
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateGrid ¶
CalculateGrid determines the optimal grid dimensions for the given number of windows
Types ¶
type Rect ¶
Rect represents a window position and size
func ApplyRegion ¶
func ApplyRegion(monitor Rect, region config.TileRegion) Rect
ApplyRegion applies the tile region to a monitor, returning adjusted bounds
func CalculatePositions ¶
CalculatePositions computes window positions for a grid layout with gaps
type Tiler ¶
type Tiler struct {
// contains filtered or unexported fields
}
Tiler manages the tiling state across monitors
func (*Tiler) CycleActiveLayout ¶
CycleActiveLayout moves to the next/previous layout in sorted order.
func (*Tiler) GetActiveLayoutName ¶
GetActiveLayoutName returns the current active layout name.
func (*Tiler) GetTerminalCount ¶
GetTerminalCount returns the last known terminal count for a monitor.
func (*Tiler) GetWorkspace ¶
GetWorkspace returns a copy of the workspace for a given monitor ID.
func (*Tiler) PreviewLayout ¶
PreviewLayout temporarily applies a layout and restores previous geometry after a duration.
func (*Tiler) SetActiveLayout ¶
SetActiveLayout sets the current active layout (used by TileCurrentMonitor).
func (*Tiler) TileCurrentMonitor ¶
TileCurrentMonitor tiles all terminals on the currently active monitor
func (*Tiler) TileWithOrder ¶
TileWithOrder tiles terminals using a specific window order instead of sorting by position. This is used by workspace load to ensure windows end up in the correct slots.
func (*Tiler) UndoCurrentMonitor ¶
UndoCurrentMonitor restores terminal windows to the geometry captured before the last tiling operation.
func (*Tiler) UpdateConfig ¶
UpdateConfig updates the tiler's configuration