moar new computer

This commit is contained in:
Franzi 2022-02-14 19:38:06 +01:00
parent f23e8f5e65
commit 0a9ca8b889
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 49 additions and 60 deletions

View file

@ -30,7 +30,7 @@ try:
if line.startswith('volume:'):
for speaker, absolute, percent in findall('([a-z-]+):\W+([0-9]+)\W+\/\W+([0-9]+)%', line):
if int(percent) < 100:
if int(percent) > 3 and int(percent) < 100:
print(f' sink {sink_id} speaker {speaker} at {percent} % volume', flush=True)
needs_adjusting = True