Add a new start_hidden bool

This commit is contained in:
maqrrr 2023-05-15 07:01:00 -04:00
parent 7b704071ff
commit 339bea1213
1 changed files with 4 additions and 0 deletions

View File

@ -593,6 +593,10 @@ waybar::Bar::Bar(struct waybar_output* w_output, const Json::Value& w_config)
setMode(MODE_DEFAULT);
}
if (config["start_hidden"].asBool()) {
setVisible(false);
}
window.signal_map_event().connect_notify(sigc::mem_fun(*this, &Bar::onMap));
#if HAVE_SWAY