Documentation ¶
Index ¶
- type WmClient
- func (client *WmClient) Close()
- func (client *WmClient) Connect() error
- func (client *WmClient) GetMonitors() ([]shared.Monitor, error)
- func (client *WmClient) GetWindows() ([]shared.Window, error)
- func (client *WmClient) GetWorkspaces() ([]shared.Workspace, error)
- func (client *WmClient) ReadMessage() (string, error)
- func (client *WmClient) RunCommand(command command.WmCommand) error
- func (client *WmClient) SendMessage(message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WmClient ¶
type WmClient struct {
// contains filtered or unexported fields
}
func (*WmClient) GetMonitors ¶
GetMonitors lists all monitors and puts them into the structs
func (*WmClient) GetWindows ¶
GetWindows lists all windows and puts them into the structs
func (*WmClient) GetWorkspaces ¶
GetWorkspaces lists all workspaces and puts them into the structs
func (*WmClient) ReadMessage ¶
ReadMessage interprets the message from socket and returns it as string
func (*WmClient) RunCommand ¶
RunCommand runs the command
func (*WmClient) SendMessage ¶
SendMessage takes a string and sends it to the websocket
Click to show internal directories.
Click to hide internal directories.