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

pub struct DefaultWorkspace { /* fields omitted */ }

Whenever a focus moves to the workspace 'name' and the workspace is empty, set a specific layout and spawn a set of default clients.

The layout is set first and then clients are spawned in the order they are defined using the penrose::core::helpers::spawn function. This means that the final client will have focus and the the clients will be arranged based on the order they are spawned.

Implementations

impl DefaultWorkspace[src]

pub fn new(
    name: impl Into<String>,
    layout: impl Into<String>,
    defaults: Vec<impl Into<String>>
) -> Box<Self>
[src]

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

Trait Implementations

impl Clone for DefaultWorkspace[src]

impl Debug for DefaultWorkspace[src]

impl Eq for DefaultWorkspace[src]

impl Hash for DefaultWorkspace[src]

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

impl PartialEq<DefaultWorkspace> for DefaultWorkspace[src]

impl StructuralEq for DefaultWorkspace[src]

impl StructuralPartialEq for DefaultWorkspace[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.