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
orbottom
height
: the height in pixels of the bartransparent
:true
orfalse
. Ifbg
isn’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
:true
orfalse
. Whether to reverse scrolling.ipc
:true
orfalse
. Whether to enable inter-process communication.default_attrs
: The default attributes for panels. SeeAttrs::parse
for more parsing details.monitor
: The name of the monitor on which the bar should display. You can usexrandr --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.