sway/get_tree.go

9 lines
278 B
Go
Raw Permalink Normal View History

package sway
2024-02-14 17:21:50 +01:00
// GetTree returns a Node object containing all
// outputs, workspaces, containers and windows in a recursive tree.
// Use Node.Find and Node.FindAll to search the tree recursively
2024-02-14 16:48:50 +01:00
func (c *Client) GetTree() (*Node, error) {
return sendMessage[*Node](c, 4, "")
}