Merge pull request #2175 from maqrrr/start_hidden

Add a new start_hidden flag
This commit is contained in:
Alexis Rouillard 2023-07-04 22:33:33 +02:00 committed by GitHub
commit d2eb8eb9fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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