Struct lazybar_core::builders::BarConfig
source · pub struct BarConfig {
pub name: String,
pub position: Position,
pub height: u16,
pub transparent: bool,
pub bg: Color,
pub margins: Margins,
pub attrs: Attrs,
pub reverse_scroll: bool,
pub ipc: bool,
pub monitor: Option<String>,
/* private fields */
}Expand description
A set of options for a bar.
See parser::parse for configuration details.
Fields§
§name: StringThe bar name to look for in the config file
position: PositionWhether the bar should be rendered at the top or bottom of the screen
height: u16In pixels
transparent: boolWhether the bar can be transparent. The background color still applies!
bg: ColorThe background color. Supports transparency if transparent is
true.
margins: MarginsThe minimum gaps between the edges of the screen and panel
sections. See Margins for details.
attrs: AttrsThe default attributes of panels on the bar. See Attrs for
details.
reverse_scroll: boolWhether to reverse the scrolling direction for panel events.
ipc: boolWhether inter-process communication (via Unix socket) is enabled.
See crate::ipc for details.
monitor: Option<String>Which monitor to display the bar on. Defaults to the primary monitor.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BarConfig
impl !RefUnwindSafe for BarConfig
impl !Send for BarConfig
impl !Sync for BarConfig
impl Unpin for BarConfig
impl !UnwindSafe for BarConfig
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