Module dispatch
Expand description
This module is for calling dispatchers and changing keywords
§Dispatch module
This module is used for calling dispatchers and changing keywords
§Usage
use hyprland::shared::HResult;
use hyprland::dispatch::{Dispatch, DispatchType};
fn main() -> HResult<()> {
Dispatch::call(DispatchType::Exec("kitty"))?;
Ok(())
}
Structs§
- Dispatch
- The struct that provides all dispatching methods
Enums§
- Corner
- This enum holds corners
- Cycle
Direction - This enum holds a direction for cycling
- Direction
- This enum holds directions, typically used for moving
- Dispatch
Type - This enum holds every dispatcher
- Focus
Master Param - Param for DispatchType::FocusMaster dispatcher
- Fullscreen
Type - This enum holds the fullscreen types
- Lock
Type - Enum used with DispatchType::LockGroups, to determine how to lock/unlock
- Monitor
Identifier - This enum is used for identifying monitors
- Position
- This enum is used for resizing and moving windows precisely
- Swap
With Master Param - Param for DispatchType::SwapWithMaster dispatcher
- Window
Identifier - This enum is for identifying a window
- Window
Move - This enum is the params to DispatchType::MoveWindow dispatcher
- Window
Switch Direction - This enum holds a direction for switch windows in a group
- Workspace
Identifier - This enum is for identifying workspaces
- Workspace
Identifier With Special - This enum is for identifying workspaces that also includes the special workspace
- Workspace
Options - This enum holds options that are applied to the current workspace