From ca6bf2e189958044f0f4de7e757cd660ec83617e Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sat, 10 Sep 2022 08:57:00 +0200 Subject: [PATCH] [modules/pulsectl] add option to automatically start pulseaudio --- bumblebee_status/modules/core/pulsectl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bumblebee_status/modules/core/pulsectl.py b/bumblebee_status/modules/core/pulsectl.py index 364156b..8d36646 100644 --- a/bumblebee_status/modules/core/pulsectl.py +++ b/bumblebee_status/modules/core/pulsectl.py @@ -7,6 +7,7 @@ import core.widget import core.input import core.event +import util.cli import util.format class Module(core.module.Module): @@ -43,6 +44,9 @@ class Module(core.module.Module): for event in events: core.input.register(self, button=event["button"], cmd=event["action"]) + if util.format.asbool(self.parameter("autostart", False)): + util.cli.execute("pulseaudio --start", ignore_errors=True) + self.process(None) def display(self, _):