Function 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.
  • default_attrs: The default attributes for panels. See Attrs::parse for more parsing details.
  • monitor: The name of the monitor on which the bar should display. You can use xrandr --query to find monitor names in most cases. However, discovering all monitors is a complicated problem and beyond the scope of this documentation.
  • cursor_{default, click, scroll}: The X11 cursor names to use. See /usr/include/X11/cursorfont.h for some options.