sway

package
v0.0.0-...-d2d4a4d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCurrentWindowNotFound = errors.New("current window not found")
View Source
var (
	ErrCurrentWorkspaceNotFound = errors.New("current workspace not found")
)

Functions

func CountWindows

func CountWindows(node *sway.Node) int

func ExtractWorkspaceName

func ExtractWorkspaceName(workspace *sway.Node) (num int, name string)

func MakeWorkspaceName

func MakeWorkspaceName(num int, name string) string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Close

func (s *Client) Close()

func (*Client) CurrentWorkspace

func (c *Client) CurrentWorkspace() (rankInOutput int, workspaces []*sway.Node, err error)

func (*Client) FocusedNode

func (c *Client) FocusedNode() (*sway.Node, error)

func (*Client) RenameWorkspacesInOrder

func (c *Client) RenameWorkspacesInOrder(workspaces []*sway.Node) error

func (*Client) RunCommand

func (c *Client) RunCommand(command string) error

Jump to

Keyboard shortcuts

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