remove trailing whitespace, set max vol to 0.8
This commit is contained in:
parent
6895754dfe
commit
6229eea4fe
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -15,7 +15,7 @@ with Pulse('kroq-volume') as pulse:
|
|||
|
||||
if command == "up":
|
||||
vol = vol + 0.1
|
||||
vol = min(vol, 1.0)
|
||||
vol = min(vol, 0.8)
|
||||
if command == "down":
|
||||
vol = vol - 0.1
|
||||
vol = max(vol, 0.0)
|
||||
|
@ -23,6 +23,6 @@ with Pulse('kroq-volume') as pulse:
|
|||
kroq.mute = not kroq.mute
|
||||
|
||||
kroq.volume.value_flat = vol
|
||||
|
||||
|
||||
pulse.sink_input_mute(kroq.index, kroq.mute)
|
||||
pulse.volume_set(kroq, kroq.volume)
|
||||
|
|
Loading…
Reference in a new issue