diff --git a/bumblebee_status/modules/contrib/shell.py b/bumblebee_status/modules/contrib/shell.py index 46352b2..4aabb5a 100644 --- a/bumblebee_status/modules/contrib/shell.py +++ b/bumblebee_status/modules/contrib/shell.py @@ -53,6 +53,7 @@ class Module(core.module.Module): def set_output(self, value): self.__output = value + core.event.trigger("update", [self.id], redraw_only=True) @core.decorators.scrollable def get_output(self, _): @@ -62,7 +63,6 @@ class Module(core.module.Module): # if requested then run not async version and just execute command in this thread if not self.__async: self.__output = util.cli.execute(self.__command, shell=True, ignore_errors=True).strip() - core.event.trigger("update", [self.id], redraw_only=True) return # if previous thread didn't end yet then don't do anything