Struct lazybar_core::panels::XWorkspaces
source · pub struct XWorkspaces { /* private fields */ }
Expand description
Display information about workspaces
Requires an EWMH-compliant window manager
Trait Implementations§
source§impl Clone for XWorkspaces
impl Clone for XWorkspaces
source§fn clone(&self) -> XWorkspaces
fn clone(&self) -> XWorkspaces
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PanelConfig for XWorkspaces
impl PanelConfig for XWorkspaces
source§fn parse(
name: &'static str,
table: &mut HashMap<String, Value>,
_global: &Config,
) -> Result<Self>
fn parse( name: &'static str, table: &mut HashMap<String, Value>, _global: &Config, ) -> Result<Self>
Configuration options:
-
screen
: the name of the X screen to monitor- type: String
- default: None (This will tell X to choose the default screen, which is probably what you want.)
-
highlight
: The highlight that will appear on the active workspaces. SeeHighlight::parse
for parsing options. -
See
PanelCommon::parse
. No format strings are used for this panel. Three instances ofAttrs
are parsed using the prefixesactive_
,nonempty_
, andinactive_
source§fn props(&self) -> (&'static str, bool)
fn props(&self) -> (&'static str, bool)
Returns the name of the panel. If the panel supports events, each
instance must return a unique name.
source§fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = Result<(PanelStream, Option<ChannelEndpoint<Event, EventResponse>>)>> + 'async_trait>>where
Self: 'async_trait,
fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = Result<(PanelStream, Option<ChannelEndpoint<Event, EventResponse>>)>> + 'async_trait>>where
Self: 'async_trait,
Performs any necessary setup, then returns a
PanelStream
representing the provided PanelConfig
. Read moreAuto Trait Implementations§
impl Freeze for XWorkspaces
impl RefUnwindSafe for XWorkspaces
impl !Send for XWorkspaces
impl !Sync for XWorkspaces
impl Unpin for XWorkspaces
impl UnwindSafe for XWorkspaces
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)