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
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); setMode(MODE_DEFAULT);
} }
if (config["start_hidden"].asBool()) {
setVisible(false);
}
window.signal_map_event().connect_notify(sigc::mem_fun(*this, &Bar::onMap)); window.signal_map_event().connect_notify(sigc::mem_fun(*this, &Bar::onMap));
#if HAVE_SWAY #if HAVE_SWAY