Documentation ¶
Index ¶
- func Do(args ...string) error
- func FocusDisplay(sel string) error
- func FocusNextWindow() error
- func FocusPrevWindow() error
- func FocusSpace(sel string) error
- func FocusWindow(sel string) error
- func Query[T any](args ...string) ([]T, error)
- func RotateWindowsClockwise() error
- func SetLayout(layout Layout) error
- func SetWindowSpace(sel string) error
- func SwapNextWindow() error
- func SwapPrevWindow() error
- func SwapWindow(sel string) error
- type Display
- type Layout
- type Space
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FocusSpace ¶
FocusSpace chanegs the space on the current display.
func RotateWindowsClockwise ¶
func RotateWindowsClockwise() error
RotateWindowsClockwise rotates tHe current window to the next monitor.
func SetWindowSpace ¶
SetWindowSpace sets the space of the current window.
func SwapNextWindow ¶
func SwapNextWindow() error
SwapNextWindow swaps the window with the next one.
On space boundary, it moves it to the next monitor.
func SwapPrevWindow ¶
func SwapPrevWindow() error
SwapPrevWindow swaps the window with the previous one.
On space boundary, it moves it to the previous monitor.
func SwapWindow ¶
SwapWindow swaps the focused window with the selected one.
Types ¶
type Display ¶
Display is a connected displays.
func (Display) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Display) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Display) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Display) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Space ¶
type Space struct { Index int `json:"index"` Label string `json:"label"` Display int `json:"display"` Windows []int `json:"windows"` FirstWindow int `json:"first-window"` LastWindow int `json:"last-window"` HasFocus bool `json:"has-focus"` IsVisible bool `json:"is-visible"` IsNativeFullScreen bool `json:"is-native-fullscreen"` }
Space is a connected displays.
func (Space) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Space) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Space) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Space) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Window ¶
type Window struct { App string `json:"app"` Title string `json:"title"` Display int `json:"display"` Space int `json:"space"` SplitType string `json:"split-type"` StackIndex int `json:"stack-index"` HasFocus bool `json:"has-focus"` IsVisible bool `json:"is-visible"` IsNativeFullScreen bool `json:"is-native-fullscreen"` IsMinimized bool `json:"is-minimized"` }
Window is an open window.