diff --git a/src/modules/custom.cpp b/src/modules/custom.cpp index 28def8c9d..1d9b320ca 100644 --- a/src/modules/custom.cpp +++ b/src/modules/custom.cpp @@ -39,6 +39,11 @@ waybar::modules::Custom::~Custom() { } void waybar::modules::Custom::delayWorker() { + if (!config_["exec"].isString() && !config_["exec-if"].isString()) { + dp.emit(); + return; + } + thread_ = [this] { for (int i : this->pid_children_) { int status;