feat(bar): individual bars can be named for CSS
Allows CSS to select individual waybars when multiple are configuredpull/397/head
parent
4f3c38c542
commit
ae88d6bc3c
|
@ -18,6 +18,7 @@ waybar::Bar::Bar(struct waybar_output* w_output, const Json::Value& w_config)
|
|||
window.set_name("waybar");
|
||||
window.set_decorated(false);
|
||||
window.get_style_context()->add_class(output->name);
|
||||
window.get_style_context()->add_class(config["name"].asString());
|
||||
window.get_style_context()->add_class(config["position"].asString());
|
||||
|
||||
if (config["position"] == "right" || config["position"] == "left") {
|
||||
|
|
Loading…
Reference in New Issue