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: top or bottom
  • height: the height in pixels of the bar
  • transparent: true or false. If bg isn’t transparent, the bar won’t be either.
  • bg: the background color. See csscolorparser::parse.
  • margins: See Margins. Keys are margin_left, margin_right, and margin_internal.
  • reverse_scroll: true or false. Whether to reverse scrolling.
  • ipc: true or false. Whether to enable inter-process communication.

See Attrs::parse for more parsing details.