[modules/pulsectl] add default device selection

re-enable functionality to add a popup that allows the user to select
the default source/sink.

fixes #965
This commit is contained in:
tobi-wan-kenobi 2023-05-11 08:45:03 +02:00
parent e9696b2150
commit 14f19c897a
2 changed files with 29 additions and 4 deletions

View file

@ -68,10 +68,13 @@ def handle_commands(config, update_lock):
def handle_events(config, update_lock):
while True:
line = sys.stdin.readline().strip(",").strip()
if line == "[": continue
logging.info("input event: {}".format(line))
process_event(line, config, update_lock)
try:
line = sys.stdin.readline().strip(",").strip()
if line == "[": continue
logging.info("input event: {}".format(line))
process_event(line, config, update_lock)
except Exception as e:
logging.error(e)
def main():