feat(bar): individual bars can be named for CSS

Allows CSS to select individual waybars when multiple are configured
pull/397/head
James Edwards-Jones 2019-07-04 02:09:31 +01:00
parent 4f3c38c542
commit ae88d6bc3c
1 changed files with 1 additions and 0 deletions

View File

@ -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") {