[][src]Enum ksway::criteria::Criteria

pub enum Criteria {
    AppId(OrFocused<String>),
    Class(OrFocused<String>),
    ConId(OrFocused<u32>),
    ConMark(String),
    Floating,
    Id(u32),
    Instance(OrFocused<String>),
    Shell(OrFocused<String>),
    Tiling,
    Title(OrFocused<String>),
    Urgent(String),
    WindowRole(OrFocused<String>),
    WindowType(String),
    Workspace(OrFocused<String>),
}

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

impl Display for Criteria[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]