[][src]Struct penrose::contrib::hooks::RemoveEmptyWorkspaces

pub struct RemoveEmptyWorkspaces { /* fields omitted */ }

Automatically remove empty workspaces when they lose focus.

Workspaces with names in 'protected' will not be auto-removed when empty so that you can maintain a set of default workspaces that are always available. This hook is most useful when combined with DefaultWorkspace to provide a set of ephemeral workspace configurations that can be created on demand.

Implementations

impl RemoveEmptyWorkspaces[src]

pub fn new(protected: Vec<impl Into<String>>) -> Box<Self>[src]

Create a new RemoveEmptyWorkspaces that is pre-boxed for adding to your workspace hooks.

Trait Implementations

impl Clone for RemoveEmptyWorkspaces[src]

impl Debug for RemoveEmptyWorkspaces[src]

impl Eq for RemoveEmptyWorkspaces[src]

impl Hash for RemoveEmptyWorkspaces[src]

impl<X: XConn> Hook<X> for RemoveEmptyWorkspaces[src]

impl PartialEq<RemoveEmptyWorkspaces> for RemoveEmptyWorkspaces[src]

impl StructuralEq for RemoveEmptyWorkspaces[src]

impl StructuralPartialEq for RemoveEmptyWorkspaces[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.