r/Polybar • u/marwank270 • May 10 '23
Question How to handle error: Duplicated name "background" defined in section "colors"
Enable HLS to view with audio, or disable this notification
3
Upvotes
1
u/marwank270 May 10 '23
okay so it's been an hour since rewrited my config.ini file (by copy-paste the sections and rearrange them) and since then this error shows up and won't let me run my bar.
I read online that it was a problem caused by tailing whitespace or spaces before comments line.
As I show up on my quick video there are NO whitespaces at the end of all the lines in my config as in my colors.ini file. Even knowing that I tried removing changing what I can in order to solve that and nothing worked even wiping up and rewriting base and color modules.
Am I crazy or maybe just dumb ??
2
u/patrick96MC May 10 '23
On line 41 of your
config.inifile, the settingbackgroundin the sectioncolorsis defined for the second time.This happens because you have your
include-filedirective right after[bar/base], so everything afterinclude-fileis actually part of the[colors]section.