Skip to content

Commit

Permalink
Merge pull request #2175 from maqrrr/start_hidden
Browse files Browse the repository at this point in the history
Add a new start_hidden flag
  • Loading branch information
Alexays authored Jul 4, 2023
2 parents 65f73d3 + 339bea1 commit d2eb8eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2eb8eb

Please sign in to comment.