Enum Event
pub enum Event {
Show 31 variants
Unknown(UnknownEventData),
WorkspaceChanged(WorkspaceEventData),
WorkspaceDeleted(WorkspaceEventData),
WorkspaceAdded(WorkspaceEventData),
WorkspaceMoved(WorkspaceMovedEventData),
WorkspaceRenamed(NonSpecialWorkspaceEventData),
ActiveWindowChanged(Option<WindowEventData>),
ActiveMonitorChanged(MonitorEventData),
FullscreenStateChanged(bool),
MonitorAdded(MonitorAddedEventData),
MonitorRemoved(String),
WindowOpened(WindowOpenEvent),
WindowClosed(Address),
WindowMoved(WindowMoveEvent),
SpecialRemoved(String),
ChangedSpecial(ChangedSpecialEventData),
LayoutChanged(LayoutEvent),
SubMapChanged(String),
LayerOpened(String),
LayerClosed(String),
FloatStateChanged(WindowFloatEventData),
UrgentStateChanged(Address),
WindowTitleChanged(WindowTitleEventData),
Screencast(ScreencastEventData),
ConfigReloaded,
IgnoreGroupLockStateChanged(bool),
LockGroupsStateChanged(bool),
WindowPinned(WindowPinEventData),
GroupToggled(GroupToggledEventData),
WindowMovedIntoGroup(Address),
WindowMovedOutOfGroup(Address),
// some variants omitted
}
Expand description
This enum holds every event type
Variants§
Unknown(UnknownEventData)
An unknown event
WorkspaceChanged(WorkspaceEventData)
An event that emits when the current workspace is changed,
it is the equivelant of the workspacev2
event
WorkspaceDeleted(WorkspaceEventData)
An event that emits when a workspace is deleted,
it is the equivelant of the destroyworkspacev2
event
WorkspaceAdded(WorkspaceEventData)
An event that emits when a workspace is created,
it is the equivelant of the createworkspacev2
event
WorkspaceMoved(WorkspaceMovedEventData)
An event that emits when a workspace is moved to another monitor,
it is the equivelant of the moveworkspacev2
event
WorkspaceRenamed(NonSpecialWorkspaceEventData)
An event that emits when a workspace is renamed,
it is the equivelant of the renameworkspace
event
ActiveWindowChanged(Option<WindowEventData>)
An event that emits when the active window is changed
Unlike the other events, this is a combination of 2 events
Those being activewindow
and activewindowv2
,
it waits for both, and then sends one unified event :)
ActiveMonitorChanged(MonitorEventData)
An event that emits when the active monitor is changed,
it is the equivelant of the focusedmon
event
FullscreenStateChanged(bool)
An event that emits when the current fullscreen state is changed,
it is the equivelant of the fullscreen
event
MonitorAdded(MonitorAddedEventData)
An event that emits when a new monitor is added/connected,
it is the equivelant of the monitoraddedv2
event
MonitorRemoved(String)
An event that emits when a monitor is removed/disconnected,
it is the equivelant of the monitorremoved
event
WindowOpened(WindowOpenEvent)
An event that emits when a window is opened,
it is the equivelant of the openwindow
event
WindowClosed(Address)
An event that emits when a window is closed,
it is the equivelant of the closewindow
event
WindowMoved(WindowMoveEvent)
An event that emits when a window is moved to a different workspace,
it is the equivelant of the movewindowv2
event
SpecialRemoved(String)
An event that emits when a special workspace is closed on the current monitor,
it is the equivelant of the activespecial
event
ChangedSpecial(ChangedSpecialEventData)
An event that emits when the current special workspace is changed on a monitor,
it is the equivelant of the activespecial
event
LayoutChanged(LayoutEvent)
An event that emits when the layout of a keyboard changes,
it is the equivelant of the activelayout
event
SubMapChanged(String)
An event that emits when the current keybind submap changes,
it is the equivelant of the submap
event
LayerOpened(String)
An event that emits when a layer shell surface is opened/mapped,
it is the equivelant of the openlayer
event
LayerClosed(String)
An event that emits when a layer shell surface is closed/unmapped,
it is the equivelant of the closelayer
event
FloatStateChanged(WindowFloatEventData)
An event that emits when the floating state of a window changes,
it is the equivelant of the changefloatingmode
event
UrgentStateChanged(Address)
An event that emits when the a window requests the urgent state,
it is the equivelant of the urgent
event
WindowTitleChanged(WindowTitleEventData)
An event that emits when the title of a window changes,
it is the equivelant of the windowtitlev2
event
Screencast(ScreencastEventData)
An event that emits when the screencopy state of a client changes
AKA, a process wants to capture/record your screen,
it is the equivelant of the screencast
event
ConfigReloaded
An event that emits when hyprland is reloaded,
it is the equivelant of the configreloaded
event
IgnoreGroupLockStateChanged(bool)
An event that emits when ignoregrouplock
is toggled,
it is the equivelant of the ignoregrouplock
event
LockGroupsStateChanged(bool)
An event that emits when lockgroups
is toggled,
it is the equivelant of the lockgroups
event
WindowPinned(WindowPinEventData)
An event that emits when a window is pinned or unpinned,
it is the equivelant of the pin
event
GroupToggled(GroupToggledEventData)
And event that emits when a group is toggled,
it is the equivelant of the togglegroup
WindowMovedIntoGroup(Address)
And event that emits when a window is moved into a group,
it is the equivelant of the moveintogroup
WindowMovedOutOfGroup(Address)
And event that emits when a window is moved out of a group,
it is the equivelant of the moveoutofgroup
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more