-
-
Notifications
You must be signed in to change notification settings - Fork 723
Open
Description
I just updated polybar and my config seems broken. I rely a lot on inherit to make my config tidy. It goes something like this.
[bar/bar]
monitor = ${env:MONITOR:LVDS1}
override-redirect = true
bottom = true
[bar/bg]
inherit = bar/bar
background = ${colors.white}
font-0 = ${fonts.null}
height = 16
modules-center = null
[bar/fg]
inherit = bar/bar
foreground = ${colors.black}
height = 12
border-bottom-size = 2
[bar/icon]
inherit = bar/fg
font-0 = ${fonts.icon}
[bar/text]
inherit = bar/fg
font-0 = ${fonts.text}
[bar/icon_blue]
inherit = bar/icon
background = ${colors.blue-0}
[bar/icon_teal]
inherit = bar/icon
background = ${colors.teal-0}
[bar/icon_orng]
inherit = bar/icon
background = ${colors.orng-0}
[bar/text_blue]
inherit = bar/text
background = ${colors.blue-1}
[bar/text_teal]
inherit = bar/text
background = ${colors.teal-1}
[bar/text_orng]
inherit = bar/text
background = ${colors.orng-1}
...more bars with inherits in them
This works on the previous version polybar (i'm not sure which one since I haven't updated it for a while). I noticed it has something to do with inherit since the config fails to refer to the bar that also inherits another bar.
For example from the config above, bar/bg will succesfully inherit bar/bar and will render a normal bar. bar/icon and bar/text however, will fail to inherit bar/fg because it also inherits bar/bar. bar/icon_blue will also fail to inherit bar/icon and so on, basically makes my config obsolete.