Format output for pipewire-list.
This commit is contained in:
parent
a8b3862bea
commit
f1df74bcfc
1 changed files with 4 additions and 1 deletions
5
main.py
5
main.py
|
@ -26,9 +26,12 @@ def bluetooth_connect(args):
|
|||
def pipewire_list(args):
|
||||
print(args)
|
||||
|
||||
print("ID | Description")
|
||||
print("----------------")
|
||||
|
||||
sinks = Pipewire.get_sinks()
|
||||
for sink in sinks:
|
||||
print(sink['info']['props']['node.description'])
|
||||
print(str(sink['id']) + " | " + sink['info']['props']['node.description'])
|
||||
|
||||
def main():
|
||||
argparser = argparse.ArgumentParser(description='CarPI CLI.')
|
||||
|
|
Loading…
Add table
Reference in a new issue