bar3x icon indicating copy to clipboard operation
bar3x copied to clipboard

Error when using example config

Open CreativeCodeCat opened this issue 4 years ago • 5 comments
trafficstars

FATA[0000] cannot parse config file: yaml: line 2: mapping values are not allowed in this context
ERRO[0004] exit status 1

CreativeCodeCat avatar Jan 03 '21 10:01 CreativeCodeCat

oh playing about it looks like it has to be like below WITHOUT the comments

bg_color:            "#17191e"
text_color:          "#d4e5f7"
accent_color:        "#1ebce8"
neutral_color:       "#37393e"
neutral_light_color: "#90949d"

CreativeCodeCat avatar Jan 03 '21 10:01 CreativeCodeCat

just had a try of adding a menu using the config wiki and this comes back as EOF for the Text

<ModuleRow>
    <Cmd Format="markup">
      <Text>Hello World!</Text>
    </Cmd>
    <Workspaces MaxWidth="100" />
  </ModuleRow>

CreativeCodeCat avatar Jan 03 '21 11:01 CreativeCodeCat

I found you can leave the comments in if you swap the // comment markers for #.

FatmanUK avatar Jan 04 '21 21:01 FatmanUK

thats nice to know :) what about my other issue?

CreativeCodeCat avatar Jan 07 '21 18:01 CreativeCodeCat

If you put all module config for a bar on one line it's harder to read but seems to work.

Like this for example: bar_left: <ModuleRow><Cmd Format="markup"><Text>Hello World!</Text></Cmd><Workspaces MaxWidth="100" /></ModuleRow> bar_right: <ModuleRow><Cmd Format="markup"><Text>Hello World!</Text></Cmd><Workspaces MaxWidth="100" /></ModuleRow>

FatmanUK avatar Jan 17 '21 13:01 FatmanUK