adds the wl output name as a css class

now you can have a custom styling for each bar
This commit is contained in:
razic 2019-06-08 11:04:34 -07:00
parent 648eecdd83
commit 46e5dd93d4
No known key found for this signature in database
GPG Key ID: 9F16409DF5767AEE

View File

@ -17,6 +17,7 @@ waybar::Bar::Bar(struct waybar_output* w_output, const Json::Value& w_config)
window.set_title("waybar");
window.set_name("waybar");
window.set_decorated(false);
window.get_style_context()->add_class(output->name);
if (config["position"] == "right" || config["position"] == "left") {
height_ = 0;