Skip to content

Commit

Permalink
Separate percent and decibel volume configs and make validation all o…
Browse files Browse the repository at this point in the history
…ccur at once.
  • Loading branch information
fgimian committed Jan 28, 2025
1 parent 6149217 commit cc85228
Show file tree
Hide file tree
Showing 13 changed files with 739 additions and 472 deletions.
33 changes: 19 additions & 14 deletions config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,29 @@ incoming_endpoint = "127.0.0.1:9001"
use_decibels = false

# The amount that the volume should be increased when using the volume keys.
# Percentage: Up to max of 0.10 which will increase the volume by 10%.
increment = 0.02
# Decibels: Up to max of 6.0 dB in multiples of 0.25 (e.g. 0.25, 0.5, 0.75, etc.).
# increment = 2.0
# Up to max of 0.10 which will increase the volume by 10%.
increment_percent = 0.02

# The amount that the volume should be increased when using the volume keys and holding shift down.
# Percentage: Up to a max of 0.05 which will increase the volume by 5%.
fine_increment = 0.01
# Decibels: Up to max of 3.0 dB in multiples of 0.25 (i.e.. 0.25, 0.5, 0.75, etc.). When using
# decibels, it is generally a good idea to ensure the fine increment is a multiple of
# increment.
# fine_increment = 0.5
# Up to a max of 0.05 which will increase the volume by 5%.
fine_increment_percent = 0.01

# The maximum volume to send.
# Percentage: Up to a max of 1.0 which is 100% volume.
max = 1.0
# Decibels: Up to max of 6.0 dB.
# max = 6.0
# Up to a max of 1.0 which is 100% volume.
max_percent = 1.0

# The amount that the volume should be increased when using the volume keys and using decibels.
# Up to max of 6.0 dB in multiples of 0.5 (e.g. 0.5, 1.0, 1.5, etc.).
increment_decibels = 2.0

# The amount that the volume should be increased when using the volume keys and holding shift down
# and using decibels.
# Up to max of 3.0 dB in multiples of 0.25 (i.e.. 0.25, 0.5, 0.75, etc.).
fine_increment_decibels = 0.5

# The maximum volume to send when using decibels.
# Up to max of 6.0 dB.
max_decibels = 6.0

[theme]
# The main widget and tray tooltip background corner rounding and color.
Expand Down
Loading

0 comments on commit cc85228

Please sign in to comment.