From 339bea1213cb9184b120ece4c7d210f6069f2843 Mon Sep 17 00:00:00 2001 From: maqrrr Date: Mon, 15 May 2023 07:01:00 -0400 Subject: [PATCH] Add a new start_hidden bool --- src/bar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bar.cpp b/src/bar.cpp index b529fcd..60104f0 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -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