Documentation ¶
Index ¶
- func IsLightMode() bool
- func RemoteCall(method string, args RPCArgs) (string, error)
- type Daemon
- func (d *Daemon) FocusWinID(id int) error
- func (d *Daemon) FocusedWindow() types.WindowData
- func (d *Daemon) GetWinTreePath(id int) ([]*ipc.Node, error)
- func (d *Daemon) HandlerOnClose(func(types.WindowData))
- func (d *Daemon) HandlerOnFocus(func(types.WindowData))
- func (d *Daemon) HandlerOnNew(func(types.WindowData))
- func (d *Daemon) ListSpaces(skipOutputs []string) ([]string, error)
- func (d *Daemon) ListWindows() map[string]types.WindowData
- func (d *Daemon) MouseToOutput(output string) error
- func (d *Daemon) MoveSpaceToOutput(space, output string, focusedWinData types.WindowData) error
- func (d *Daemon) MoveWinToSpace(winID int, space string) error
- func (d *Daemon) MoveWinToSpaceNum(winID, spaceNum int) error
- func (d *Daemon) PrevWindow() types.WindowData
- func (d *Daemon) RemoteCopy(args RPCArgs, ret *string) error
- func (d *Daemon) RemoteExec(args RPCArgs, ret *string) error
- func (d *Daemon) RemoteFZFList(_ RPCArgs, reply *string) error
- func (d *Daemon) RemoteFZFListPickSpace(_ RPCArgs, reply *string) error
- func (d *Daemon) RemoteFZFListPickWin(_ RPCArgs, reply *string) error
- func (d *Daemon) RemoteFocusWinID(args RPCArgs, _ *string) error
- func (d *Daemon) RemoteGetPathFiles(args RPCArgs, ret *string) error
- func (d *Daemon) RemoteMoveSpaceToOutput(args RPCArgs, _ *string) error
- func (d *Daemon) RemoteMoveWinToSpace(args RPCArgs, _ *string) error
- func (d *Daemon) RemoteSetConfig(args RPCArgs, _ *string) error
- func (d *Daemon) RemoteShouldOpen(args RPCArgs, reply *string) error
- func (d *Daemon) RemoteUsrCmd(rpcArgs RPCArgs, rpcRet *string) error
- func (d *Daemon) RemoteWinList(_ RPCArgs, reply *string) error
- func (d *Daemon) RemoteWinToSpace(args RPCArgs, ret *string) error
- func (d *Daemon) Start()
- func (d *Daemon) SwayMsg(msg string, args ...any) error
- func (d *Daemon) SwayMsgs(msgs []string) error
- func (d *Daemon) WinMatchApp(win types.WindowData, match string) bool
- func (d *Daemon) WinMatchTitle(win types.WindowData, match string) bool
- type RPCArgs
- type WindowFocus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLightMode ¶
func IsLightMode() bool
Types ¶
type Daemon ¶
type Daemon struct { MouseFollowsFocus bool Autoconfig bool DefaultKeybindings bool Logger *log.Logger // contains filtered or unexported fields }
func (*Daemon) FocusWinID ¶
func (*Daemon) FocusedWindow ¶
func (d *Daemon) FocusedWindow() types.WindowData
func (*Daemon) GetWinTreePath ¶
GetWinTreePath returns the nodes between tree root and the passed window ID, starting with the workspace
func (*Daemon) HandlerOnClose ¶
func (d *Daemon) HandlerOnClose(func(types.WindowData))
func (*Daemon) HandlerOnFocus ¶
func (d *Daemon) HandlerOnFocus(func(types.WindowData))
func (*Daemon) HandlerOnNew ¶
func (d *Daemon) HandlerOnNew(func(types.WindowData))
func (*Daemon) ListSpaces ¶
ListSpaces returns names of the current workspaces.
func (*Daemon) ListWindows ¶
func (d *Daemon) ListWindows() map[string]types.WindowData
func (*Daemon) MouseToOutput ¶
func (*Daemon) MoveSpaceToOutput ¶
func (d *Daemon) MoveSpaceToOutput(space, output string, focusedWinData types.WindowData) error
func (*Daemon) MoveWinToSpaceNum ¶
func (*Daemon) PrevWindow ¶
func (d *Daemon) PrevWindow() types.WindowData
func (*Daemon) RemoteCopy ¶
RemoteCopy is an RPC method
func (*Daemon) RemoteExec ¶
RemoteExec is an RPC method
func (*Daemon) RemoteFZFList ¶
RemoteFZFList is an RPC method
func (*Daemon) RemoteFZFListPickSpace ¶
RemoteFZFListPickSpace is an RPC method
func (*Daemon) RemoteFZFListPickWin ¶
RemoteFZFListPickWin is an RPC method
func (*Daemon) RemoteFocusWinID ¶
RemoteFocusWinID is an RPC method
func (*Daemon) RemoteGetPathFiles ¶
RemoteGetPathFiles is an RPC method
func (*Daemon) RemoteMoveSpaceToOutput ¶
RemoteMoveSpaceToOutput is an RPC method
func (*Daemon) RemoteMoveWinToSpace ¶
RemoteMoveWinToSpace is an RPC method
func (*Daemon) RemoteSetConfig ¶
RemoteSetConfig is an RPC method
func (*Daemon) RemoteShouldOpen ¶
RemoteShouldOpen is an RPC method
func (*Daemon) RemoteUsrCmd ¶
RemoteUsrCmd is an RPC method
func (*Daemon) RemoteWinList ¶
RemoteWinList is an RPC method
func (*Daemon) RemoteWinToSpace ¶
RemoteWinToSpace is an RPC method
func (*Daemon) WinMatchApp ¶
func (d *Daemon) WinMatchApp(win types.WindowData, match string) bool
func (*Daemon) WinMatchTitle ¶
func (d *Daemon) WinMatchTitle(win types.WindowData, match string) bool
type WindowFocus ¶
type WindowFocus []string
Click to show internal directories.
Click to hide internal directories.