dispatch

package
v0.0.0-...-c0f4c54 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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 Dispatch

type Dispatch struct {
	Move   Move
	Focus  Focus
	Toggle Toggle
}

type Focus

type Focus struct{}

func (*Focus) Monitor

func (f *Focus) Monitor(monitor types.HyprlandMonitor) error

Monitor focuses a given HyprlandMonitor

func (*Focus) Window

func (f *Focus) Window(address string) error

Window focuses a given HyprlandClient.Address

func (*Focus) WorkspaceID

func (f *Focus) WorkspaceID(ID int) error

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

func (m *Move) ClientToCurrent(address string) error

ClientToCurrent moves a given HyprlandClient.Address to current HyprlandWorkspace

func (*Move) GoToWorkspace

func (m *Move) GoToWorkspace(workspaceName string) error

func (*Move) ToSpecialNamed

func (m *Move) ToSpecialNamed(specialWorkspaceName, clientAddress string) error

ToSpecialNamed moves given HyprlandClient.Address to named special HyprlandWorkspace

func (*Move) ToWorkspaceName

func (m *Move) ToWorkspaceName(workspaceName, clientAddress string) error

ToWorkspaceName moves a given HyprlandClient.Address to a HyprlandWorkspace.Name and focus the HyprlandClient

func (*Move) ToWorkspaceSilent

func (m *Move) ToWorkspaceSilent(name, address string) error

ToWorkspaceSilent moves a given HyprlandClient.Address to a HyprlandWorkspace.Name without focussing the HyprlandClient

func (*Move) WindowPixelExact

func (m *Move) WindowPixelExact(x, y int, address string) error

WindowPixelExact move at precise HyprlandClient.At the HyprlandClient.Address

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

type Toggle

type Toggle struct{}

func (*Toggle) Floating

func (t *Toggle) Floating(address string) error

Floating activate/deactivate the HyprlandClient.Floating mode for the given HyprlandClient.Address

func (*Toggle) SpecialWorkspace

func (t *Toggle) SpecialWorkspace(name string) error

SpecialWorkspace show/hide the special HyprlandWorkspace.Name

Jump to

Keyboard shortcuts

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