[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:
parent
e9696b2150
commit
14f19c897a
2 changed files with 29 additions and 4 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue