exec runs after on-* events

This commit is contained in:
Ruan E. Formigoni
2022-11-10 02:36:54 -03:00
parent 781da93f3d
commit 38af4a6f16
3 changed files with 9 additions and 6 deletions

View File

@ -27,6 +27,9 @@ waybar::modules::Custom::~Custom() {
void waybar::modules::Custom::delayWorker() {
thread_ = [this] {
std::for_each(this->pid_children_.cbegin(), this->pid_children_.cend(),
[](int i){ wait(&i); });
bool can_update = true;
if (config_["exec-if"].isString()) {
output_ = util::command::execNoRead(config_["exec-if"].asString());