sway/get_workspaces.go

7 lines
172 B
Go

package sway
// GetWorkspaces returns all currently opened workspaces
func (c *Client) GetWorkspaces() ([]Workspace, error) {
return sendMessage[[]Workspace](c, 1, "")
}