Function lazybar_core::parser::parse
source · pub fn parse(bar_name: &str, config: &Path) -> Result<BarConfig>Expand description
Parses a bar with a given name from the global Config
Configuration options:
position:toporbottomheight: the height in pixels of the bartransparent:trueorfalse. Ifbgisn’t transparent, the bar won’t be either.bg: the background color. Seecsscolorparser::parse.margins: SeeMargins. Keys aremargin_left,margin_right, andmargin_internal.reverse_scroll:trueorfalse. Whether to reverse scrolling.ipc:trueorfalse. Whether to enable inter-process communication.default_attrs: The default attributes for panels. SeeAttrs::parsefor more parsing details.monitor: The name of the monitor on which the bar should display. You can usexrandr --queryto find monitor names in most cases. However, discovering all monitors is a complicated problem and beyond the scope of this documentation.