[−][src]Enum ksway::criteria::Criteria
Variants
AppId(OrFocused<String>)
Compare value against the app id. Can be a regular expression. If value is focused, then the app id must be the same as that of the currently focused window. app_id are specific to Wayland applications.
Class(OrFocused<String>)
Compare value against the window class. Can be a regular expression. If value is focused, then the window class must be the same as that of the currently focused window. class are specific to X11 applications.
ConId(OrFocused<u32>)
Compare against the internal container ID, which you can find via IPC. If value is focused, then the id must be the same as that of the currently focused window.
ConMark(String)
Compare against the window marks. Can be a regular expression.
Floating
Matches floating windows.
Id(u32)
Compare value against the X11 window ID. Must be numeric.
Instance(OrFocused<String>)
Compare value against the window instance. Can be a regular expression. If value is focused, then the window instance must be the same as that of the currently focused window.
Shell(OrFocused<String>)
Compare value against the window shell, such as "xdg_shell" or "xwayland". Can be a regular expression. If value is focused, then the shell must be the same as that of the currently focused window.
Tiling
Matches tiling windows.
Title(OrFocused<String>)
Compare against the window title. Can be a regular expression. If value is focused, then the window title must be the same as that of the currently focused window.
Urgent(String)
Compares the urgent state of the window. Can be "first", "last", "latest", "newest", "oldest" or "recent".
WindowRole(OrFocused<String>)
Compare against the window role (WM_WINDOW_ROLE). Can be a regular expression. If value is focused, then the window role must be the same as that of the currently focused window.
WindowType(String)
Compare against the window type (_NET_WM_WINDOW_TYPE). Possible values are normal, dialog, utility, toolbar, splash, menu, dropdown_menu, popup_menu, tooltip and notification.
Workspace(OrFocused<String>)
Compare against the workspace name for this view. Can be a regular expression. If the value is focused, then all the views on the cur‐ rently focused workspace matches.
Trait Implementations
Auto Trait Implementations
impl Sync for Criteria
impl Send for Criteria
impl Unpin for Criteria
impl RefUnwindSafe for Criteria
impl UnwindSafe for Criteria
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,