pub struct Systray { /* private fields */ }
Expand description
Display icons from some applications. See https://specifications.freedesktop.org/systemtray-spec/ for details.
Trait Implementations§
Source§impl PanelConfig for Systray
impl PanelConfig for Systray
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>
Parses an instance of the panel from the global Config
Configuration options:
screen
: The X screen to run on. Only one systray can exist on each screen at any given time. Leaving this unset is probably what you want.aggressive
: If this is true, lazybar will take ownership of the system tray for the given screen even if it is already owned. If it is later lost, lazybar will not attempt to reacquire it.padding
: The number of pixels between two icons.size
: The width and height in pixels of each icon.sort
: One ofarrival
,window_name
, andwindow_name_lower
. Defaults toarrival
.arrival
will add each new panel on the right.window_name
will sort the panels by their_NET_WM_NAME
(failing that,WM_NAME
) properties.window_name_lower
will do the same, but convert the strings to lowercase first.sort_reverse
: If this is true, the sorting method above will be reversed. SeePanelCommon::parse_common
. This is used only for dependence.
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 = PanelRunResult> + '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 = PanelRunResult> + '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 Systray
impl RefUnwindSafe for Systray
impl !Send for Systray
impl !Sync for Systray
impl Unpin for Systray
impl UnwindSafe for Systray
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