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
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.
See Attrs::parse
for more parsing details.