[−][src]Struct penrose::contrib::hooks::RemoveEmptyWorkspaces
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]
pub fn clone(&self) -> RemoveEmptyWorkspaces
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RemoveEmptyWorkspaces
[src]
impl Eq for RemoveEmptyWorkspaces
[src]
impl Hash for RemoveEmptyWorkspaces
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<X: XConn> Hook<X> for RemoveEmptyWorkspaces
[src]
pub fn workspace_change(
&mut self,
wm: &mut WindowManager<X>,
old: usize,
_: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
old: usize,
_: usize
) -> Result<()>
pub fn startup(&mut self, wm: &mut WindowManager<X>) -> Result<()>
[src]
pub fn new_client(
&mut self,
wm: &mut WindowManager<X>,
client: &mut Client
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
client: &mut Client
) -> Result<()>
pub fn remove_client(
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
pub fn client_added_to_workspace(
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
wix: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
wix: usize
) -> Result<()>
pub fn client_name_updated(
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
name: &str,
is_root: bool
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
name: &str,
is_root: bool
) -> Result<()>
pub fn layout_applied(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
pub fn layout_change(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
pub fn workspaces_updated(
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize
) -> Result<()>
pub fn screen_change(
&mut self,
wm: &mut WindowManager<X>,
screen_index: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
screen_index: usize
) -> Result<()>
pub fn screens_updated(
&mut self,
wm: &mut WindowManager<X>,
dimensions: &[Region]
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
dimensions: &[Region]
) -> Result<()>
pub fn randr_notify(&mut self, wm: &mut WindowManager<X>) -> Result<()>
[src]
pub fn focus_change(
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
pub fn event_handled(&mut self, wm: &mut WindowManager<X>) -> Result<()>
[src]
impl PartialEq<RemoveEmptyWorkspaces> for RemoveEmptyWorkspaces
[src]
pub fn eq(&self, other: &RemoveEmptyWorkspaces) -> bool
[src]
pub fn ne(&self, other: &RemoveEmptyWorkspaces) -> bool
[src]
impl StructuralEq for RemoveEmptyWorkspaces
[src]
impl StructuralPartialEq for RemoveEmptyWorkspaces
[src]
Auto Trait Implementations
impl RefUnwindSafe for RemoveEmptyWorkspaces
[src]
impl Send for RemoveEmptyWorkspaces
[src]
impl Sync for RemoveEmptyWorkspaces
[src]
impl Unpin for RemoveEmptyWorkspaces
[src]
impl UnwindSafe for RemoveEmptyWorkspaces
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,