Documentation ¶
Index ¶
- Constants
- type Dispatch
- type Focus
- type Move
- func (m *Move) CenterFloatingClient(client types.HyprlandClient, monitor types.HyprlandMonitor, applyRand bool) error
- func (m *Move) ClientToCurrent(address string) error
- func (m *Move) GoToWorkspace(workspaceName string) error
- func (m *Move) ToSpecialNamed(specialWorkspaceName, clientAddress string) error
- func (m *Move) ToWorkspaceName(workspaceName, clientAddress string) error
- func (m *Move) ToWorkspaceSilent(name, address string) error
- func (m *Move) WindowPixelExact(x, y int, address string) error
- type Resize
- type Toggle
Constants ¶
const ( // DispatchKey is the dispatch keyword DispatchKey = "dispatch" // Exec Exec = "exec" // ExecR ExecR = "execr" // Pass Pass = "pass" // KillActive KillActive = "killactive" // CloseWindow CloseWindow = "closeWindow" // Workspace changes the workspace Workspace = "workspace" // MoveToWorkspace MoveToWorkspace = "movetoworkspace" // MoveToWorkspaceSilent MoveToWorkspaceSilent = "movetoworkspacesilent" // ToggleFloating ToggleFloating = "togglefloating" // Fullscreen Fullscreen = "fullscreen" // FakeFullscreen FakeFullscreen = "fakefullscreen" // Dpms Dpms = "dpms" // Pin Pin = "pin" // MoveFocus MoveFocus = "movefocus" // MoveWindow MoveWindow = "movewindow" // SwapWindow SwapWindow = "swapwindow" // CenterWindow CenterWindow = "centerwindow" // ResizeActive ResizeActive = "resizeactive" // MoveActive MoveActive = "moveactive" // ResizeWindowPixel ResizeWindowPixel = "resizewindowpixel" // ResizeWindowPixelExact ResizeWindowPixelExact = "resizewindowpixel exact" // MoveWindowPixel moves a selected window MoveWindowPixel = "movewindowpixel" // MoveWindowPixelExact MoveWindowPixelExact = "movewindowpixel exact" // CycleNext CycleNext = "cyclenext" // SwapNext SwapNext = "swapnext" // FocusWindow FocusWindow = "focuswindow" // FocusMonitor FocusMonitor = "focusmonitor" // SplitRatio SplitRatio = "splitratio" // ToggleOpaque ToggleOpaque = "toggleopaque" // MoveCursorToCorner MoveCursorToCorner = "movecursortocorner" // MoveCursor MoveCursor = "movecursor" // WorkspaceOpt WorkspaceOpt = "workspaceopt" // RenameWorkspace RenameWorkspace = "renameworkspace" // Exit Exit = "exit" // ForceRendererReload ForceRendererReload = "forcerendererreload" // MoveCurrentWorkspaceToMonitor MoveCurrentWorkspaceToMonitor = "movecurrentworkspacetomonitor" // MoveWorkspaceToMonitor MoveWorkspaceToMonitor = "moveworkspacetomonitor" // SwapActiveWorkspaces SwapActiveWorkspaces = "swapactiveworkspaces" // BringActiveToTop BringActiveToTop = "bringactivetotop" // ToggleSpecialWorskpace ToggleSpecialWorkspace = "togglespecialworkspace" // FocusUrgentOrLast FocusUrgentOrLast = "focusurgentorlast" // LockGroups LockGroups = "lockgroups" // LockActiveGroup LockActiveGroup = "lockactivegroup" // MoveIntoGroup MoveIntoGroup = "moveintogroup" // MoveOutOfGroup MoveOutOfGroup = "moveoutofgroup" // MoveGroupWindow MoveGroupWindow = "movegroupwindow" // Global Global = "global" // Submap Submap = "submap" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Focus ¶
type Focus struct{}
func (*Focus) Monitor ¶
func (f *Focus) Monitor(monitor types.HyprlandMonitor) error
Monitor focuses a given HyprlandMonitor
func (*Focus) WorkspaceID ¶
WorkspaceID focuses a HyprlandWorkspace.Id
type Move ¶
type Move struct{}
func (*Move) CenterFloatingClient ¶
func (m *Move) CenterFloatingClient(client types.HyprlandClient, monitor types.HyprlandMonitor, applyRand bool) error
CenterFloatingClient put a HyprlandClient at the center of a HyprlandMonitor. This applies an offset so windows are not stacked on the exact same position
func (*Move) ClientToCurrent ¶
ClientToCurrent moves a given HyprlandClient.Address to current HyprlandWorkspace
func (*Move) GoToWorkspace ¶
func (*Move) ToSpecialNamed ¶
ToSpecialNamed moves given HyprlandClient.Address to named special HyprlandWorkspace
func (*Move) ToWorkspaceName ¶
ToWorkspaceName moves a given HyprlandClient.Address to a HyprlandWorkspace.Name and focus the HyprlandClient
func (*Move) ToWorkspaceSilent ¶
ToWorkspaceSilent moves a given HyprlandClient.Address to a HyprlandWorkspace.Name without focussing the HyprlandClient
type Resize ¶
type Resize struct{}
func (*Resize) WindowExactPixel ¶
func (r *Resize) WindowExactPixel(client types.HyprlandClient, intWidth, intHeight int) error
WindowExactPixel resize given HyprlandClient to specific width and height