Documentation
¶
Index ¶
- func NewMainLoopFor(backend backend) (beforeCommandPing chan struct{}, afterCommandPing chan struct{}, ...)
- func NewX11Backend() (backend, error)
- type Client
- type ClientId
- type Keybinder
- type Prop
- type Tracker
- type Workarea
- type WorkspaceFactory
- type X11Client
- func (c X11Client) Activate()
- func (c X11Client) DecorDimensions() (width int, height int)
- func (c X11Client) Decorate()
- func (c X11Client) Id() ClientId
- func (c X11Client) Maximize()
- func (c X11Client) MoveResize(x, y, width, height int)
- func (c X11Client) Restore()
- func (c X11Client) String() string
- func (c X11Client) Undecorate()
- func (c X11Client) Unmaximize()
- type X11ClientId
- type X11Keybinder
- type X11Tracker
- func (tr *X11Tracker[T]) ActiveClient() (client Client, exists bool)
- func (tr *X11Tracker[T]) ActiveWorkspace() T
- func (tr *X11Tracker[T]) Client(id ClientId) (client Client, exists bool)
- func (tr *X11Tracker[T]) CurentWorkspaceNum() uint
- func (tr *X11Tracker[T]) IsTracked(wid xproto.Window) bool
- func (tr *X11Tracker[T]) ParseClientId(str string) (ClientId, error)
- func (tr *X11Tracker[T]) StartTracking()
- func (tr *X11Tracker[T]) Sync()
- func (tr *X11Tracker[T]) WorkAreaDimensions(num uint) (x, y, width, height int)
- func (tr *X11Tracker[T]) Workspace(index uint) T
- func (tr *X11Tracker[T]) WorkspaceCount() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMainLoopFor ¶
func NewMainLoopFor(
backend backend,
) (
beforeCommandPing chan struct{},
afterCommandPing chan struct{},
quitPing chan struct{},
)
func NewX11Backend ¶
func NewX11Backend() (backend, error)
Types ¶
type Keybinder ¶
type Keybinder interface {
Bind(keyStr string, callback func())
}
func NewKeybinderFor ¶
func NewKeybinderFor( backend backend, ) Keybinder
type Tracker ¶
type Tracker[T workspace] interface {
ParseClientId(string) (ClientId, error)
Client(id ClientId) (client Client, exists bool)
ActiveClient() (client Client, exists bool)
CurentWorkspaceNum() uint
WorkspaceCount() uint
Workspace(index uint) T
ActiveWorkspace() T
WorkAreaDimensions(num uint) (x, y, width, height int)
StartTracking()
Sync()
}
func NewTrackerFor ¶
func NewTrackerFor[T workspace]( backend backend, classesToIgnore []string, workspaceFactory WorkspaceFactory[T], ) ( Tracker[T], error, )
type WorkspaceFactory ¶
type X11Client ¶
func (X11Client) Activate ¶
func (c X11Client) Activate()
Activate makes the client the currently active window
func (X11Client) DecorDimensions ¶
DecorDimensions returns the width and height occupied by window decorations
func (X11Client) MoveResize ¶
func (X11Client) Restore ¶
func (c X11Client) Restore()
Restore resizes and decorates window to pre-tiling state.
func (X11Client) Undecorate ¶
func (c X11Client) Undecorate()
func (X11Client) Unmaximize ¶
func (c X11Client) Unmaximize()
type X11ClientId ¶
func (X11ClientId) Equals ¶
func (id X11ClientId) Equals(otherId ClientId) bool
func (X11ClientId) String ¶
func (id X11ClientId) String() string
type X11Keybinder ¶
func (X11Keybinder) Bind ¶
func (k X11Keybinder) Bind(keyStr string, f func())
type X11Tracker ¶
func (*X11Tracker[T]) ActiveClient ¶
func (tr *X11Tracker[T]) ActiveClient() (client Client, exists bool)
func (*X11Tracker[T]) ActiveWorkspace ¶
func (tr *X11Tracker[T]) ActiveWorkspace() T
func (*X11Tracker[T]) Client ¶
func (tr *X11Tracker[T]) Client(id ClientId) (client Client, exists bool)
func (*X11Tracker[T]) CurentWorkspaceNum ¶
func (tr *X11Tracker[T]) CurentWorkspaceNum() uint
func (*X11Tracker[T]) ParseClientId ¶
func (tr *X11Tracker[T]) ParseClientId(str string) (ClientId, error)
func (*X11Tracker[T]) Sync ¶
func (tr *X11Tracker[T]) Sync()
func (*X11Tracker[T]) WorkAreaDimensions ¶
func (tr *X11Tracker[T]) WorkAreaDimensions(num uint) (x, y, width, height int)
WorkAreaDimensions returns the dimension of the requested workspace.
func (*X11Tracker[T]) Workspace ¶
func (tr *X11Tracker[T]) Workspace(index uint) T
func (*X11Tracker[T]) WorkspaceCount ¶
func (tr *X11Tracker[T]) WorkspaceCount() uint
Click to show internal directories.
Click to hide internal directories.