desktop

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkspaces

func CreateWorkspaces() map[uint]*Workspace

func ShowLayout

func ShowLayout(ws *Workspace)

Types

type Layout

type Layout interface {
	Do()
	Undo()
	AddClient(c *store.Client)
	RemoveClient(c *store.Client)
	MakeMaster(c *store.Client)
	SwapClient(c1 *store.Client, c2 *store.Client)
	NextClient()
	PreviousClient()
	IncreaseMaster()
	DecreaseMaster()
	IncreaseSlave()
	DecreaseSlave()
	IncreaseProportion()
	DecreaseProportion()
	UpdateProportions(c *store.Client, d *store.Directions)
	GetManager() *store.Manager
	GetName() string
}

func CreateLayouts

func CreateLayouts(deskNum uint) []Layout

type Swap added in v1.1.3

type Swap struct {
	Client1 *store.Client // Stores moving client
	Client2 *store.Client // Stores hovered client
}

type Tracker

type Tracker struct {
	Clients    map[xproto.Window]*store.Client // List of clients that are being tracked
	Workspaces map[uint]*Workspace             // List of workspaces used
}

func CreateTracker

func CreateTracker(ws map[uint]*Workspace) *Tracker

func (*Tracker) Update added in v1.1.1

func (tr *Tracker) Update()

type Workspace

type Workspace struct {
	Layouts         []Layout // List of available layouts
	TilingEnabled   bool     // Tiling is enabled or not
	ActiveLayoutNum uint     // Active layout index
}

func (*Workspace) ActiveLayout

func (ws *Workspace) ActiveLayout() Layout

func (*Workspace) AddClient

func (ws *Workspace) AddClient(c *store.Client)

func (*Workspace) Enable added in v1.1.1

func (ws *Workspace) Enable(enable bool)

func (*Workspace) IsEnabled

func (ws *Workspace) IsEnabled() bool

func (*Workspace) RemoveClient

func (ws *Workspace) RemoveClient(c *store.Client)

func (*Workspace) SetLayout

func (ws *Workspace) SetLayout(layoutNum uint)

func (*Workspace) SwitchLayout

func (ws *Workspace) SwitchLayout()

func (*Workspace) Tile

func (ws *Workspace) Tile()

func (*Workspace) UnTile

func (ws *Workspace) UnTile()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL