Documentation ¶
Index ¶
- func CreateWorkspaces() map[store.Location]*Workspace
- type Handler
- type HandlerClient
- type Layout
- type Tracker
- type Workspace
- func (ws *Workspace) ActiveLayout() Layout
- func (ws *Workspace) AddClient(c *store.Client)
- func (ws *Workspace) Cache() common.Cache[*Workspace]
- func (ws *Workspace) CycleLayout(step int)
- func (ws *Workspace) Disable()
- func (ws *Workspace) Disabled() bool
- func (ws *Workspace) Enable()
- func (ws *Workspace) Enabled() bool
- func (ws *Workspace) Read() *Workspace
- func (ws *Workspace) RemoveClient(c *store.Client)
- func (ws *Workspace) ResetLayouts()
- func (ws *Workspace) Restore(flag uint8)
- func (ws *Workspace) SetLayout(layoutNum uint)
- func (ws *Workspace) Tile()
- func (ws *Workspace) Write()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWorkspaces ¶
Types ¶
type Handler ¶
type Handler struct { Timer *time.Timer // Timer to handle delayed structure events ResizeClient *HandlerClient // Stores client for proportion change MoveClient *HandlerClient // Stores client for tiling after move SwapClient *HandlerClient // Stores clients for window swap SwapScreen *HandlerClient // Stores client for screen swap }
type HandlerClient ¶
type Layout ¶
type Layout interface { Reset() Apply() AddClient(c *store.Client) RemoveClient(c *store.Client) MakeMaster(c *store.Client) SwapClient(c1 *store.Client, c2 *store.Client) NextClient() *store.Client PreviousClient() *store.Client IncreaseMaster() DecreaseMaster() IncreaseSlave() DecreaseSlave() IncreaseProportion() DecreaseProportion() UpdateProportions(c *store.Client, d *store.Directions) GetManager() *store.Manager GetName() string }
func CreateLayouts ¶
type Tracker ¶
type Tracker struct { Clients map[xproto.Window]*store.Client // List of clients that are being tracked Workspaces map[store.Location]*Workspace // List of workspaces per location Action chan string // Event channel for actions Handler *Handler // Helper for event handlers }
func CreateTracker ¶
func CreateTracker() *Tracker
func (*Tracker) ActiveWorkspace ¶
type Workspace ¶
type Workspace struct { Name string // Workspace location name Location store.Location // Desktop and screen location Layouts []Layout // List of available layouts TilingEnabled bool // Tiling is enabled or not ActiveLayoutNum uint // Active layout index }
func (*Workspace) ActiveLayout ¶
func (*Workspace) CycleLayout ¶
func (*Workspace) RemoveClient ¶
func (*Workspace) ResetLayouts ¶ added in v2.4.0
func (ws *Workspace) ResetLayouts()
Click to show internal directories.
Click to hide internal directories.