remove trailing whitespace, set max vol to 0.8

This commit is contained in:
Joe Ardent 2024-03-20 17:30:51 -07:00
parent 6895754dfe
commit 6229eea4fe

View file

@ -15,7 +15,7 @@ with Pulse('kroq-volume') as pulse:
if command == "up": if command == "up":
vol = vol + 0.1 vol = vol + 0.1
vol = min(vol, 1.0) vol = min(vol, 0.8)
if command == "down": if command == "down":
vol = vol - 0.1 vol = vol - 0.1
vol = max(vol, 0.0) vol = max(vol, 0.0)