Documentation ¶
Overview ¶
Package wmutils provides wrappers around https://github.com/wmutils
Index ¶
- func Exists(wid WindowID) (bool, error)
- func Focus(wid WindowID) error
- func GetAttributes(wid WindowID) (Position, Size, error)
- func IsIgnored(wid WindowID) (bool, error)
- func Kill(wid WindowID) error
- func List() (map[WindowID]bool, error)
- func Map(wid WindowID) error
- func Raise(wid WindowID) error
- func SetBorderColour(wid WindowID, colour Colour) error
- func SetBorderWidth(wid WindowID, width Pixels) error
- func Teleport(wid WindowID, pos Position, size Size) error
- func Toggle(wid WindowID) error
- func Unmap(wid WindowID) error
- func WatchEvents() <-chan Event
- type Colour
- type Event
- type EventType
- type Pixels
- type Position
- type Size
- type WindowID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exists ¶
Exists returns true if there is a window with the given ID, false otherwise. Wraps wattr.
func Focus ¶
Focus sets the keyboard input focus to the window with the given ID if it exists and is viewable. Wraps wtf.
func GetAttributes ¶
GetAttributes returns the size and position of the window with the given ID. Wraps wattr xywh.
func IsIgnored ¶
IsIgnored returns true if and only if the window with the given ID has the override_redirect attribute set. Wraps wattr o.
func List ¶
List returns the IDs of the child windows of the root (excluding invisible or ignored windows). Wraps lsw.
func SetBorderColour ¶
SetBorderColour sets the colour of the border for the window with the given ID. Wraps chwb -c.
func SetBorderWidth ¶
SetBorderWidth sets the width of the border for the window with the given ID. Wraps chwb -s.
func Teleport ¶
Teleports the window with given ID to the given position, and resizes it to the given size. Wraps wtp.