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: String
The bar name to look for in the config file
position: Position
Whether the bar should be rendered at the top or bottom of the screen
height: u16
In pixels
transparent: bool
Whether the bar can be transparent. The background color still applies!
bg: Color
The background color. Supports transparency if transparent
is
true.
margins: Margins
The minimum gaps between the edges of the screen and panel
sections. See Margins
for details.
attrs: Attrs
The default attributes of panels on the bar. See Attrs
for
details.
reverse_scroll: bool
Whether to reverse the scrolling direction for panel events.
ipc: bool
Whether 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§
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