Skip to content

Commit

Permalink
Add sample configs in HJSON and TOML.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimian committed Jan 27, 2025
1 parent dc9581e commit 62fffda
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 0 deletions.
90 changes: 90 additions & 0 deletions config.sample.hjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# TotalMix Volume Control sample configuration file.
#
# All the pre-filled values you see in this file are optional and represent the application
# defaults. This JSON file supports comments and trailing commas.
#
# Colors may be specified as regular color names such as blue, along with hex colors with RGB
# or ARGB components (note that the alpha channel needs to be first if you ant transparency).

osc: {
# The hostname port that TotalMix Volume Control should send to. TotalMixFX listens on
# 0.0.0.0 so the hostname may be any IP address on your network. Generally 127.0.0.1
# (localhost) is recommended. The port should be set to match the Port incoming
# setting in TotalMixFX.
outgoing_hostname: 127.0.0.1
outgoing_port: 7001

# The hostname and port that TotalMix Volume Control should receive from. This should be
# set to match the Port outgoing setting in TotalMixFX.
incoming_hostname: 127.0.0.1
incoming_port: 9001
}

volume: {
# Whether to use dB units for volume increments and max values. See below for valid
# values when decibels are used.
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%.
# - Decibels: Up to max of 3.0 dB in multiples of 0.5 (e.g. 0.5, 1.0, 1.5, etc.).
increment: 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%.
# - Decibels: Up to max of 1.5 dB in multiples of 0.5 (i.e.. 0.5, 1.0 or 1.5). When using
# decibels, it is generally a good idea to ensure the fine increment is a
# multiple of increment.
fine_increment: 0.01

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

theme: {
# The main widget and tray tooltip background corner rounding and color.
background_rounding: 10.0
background_color: "#e21e2328"

# The TotalMix Volume heading text colors.
heading_totalmix_color: "#ffffff"
heading_volume_color: "#e06464"

# The main decibel volume readout text colors.
volume_readout_color_normal: "#ffffff"
volume_readout_color_dimmed: "#ffa500"

# The horizontal volume bar colors.
volume_bar_background_color: "#333333"
volume_bar_foreground_color_normal: "#999999"
volume_bar_foreground_color_dimmed: "#996500"

# The tray tooltip text message color.
tray_tooltip_message_color: "#ffffff"
}

interface: {
# Scale the interface by a particular factor (e.g. 2.0 will be twice as large).
scaling: 1.0

# The position offset from the top left corner to display the widget at.
position_offset: 40.0

# The amount of time in seconds to display the widget upon hitting the volume keys before
# beginning the fade out animation.
hide_delay: 2.0

# The duration of the fade out animation in seconds.
fade_out_time: 1.0

# Whether to show the indicator any time the volume is changed via the device or any other
# external means (e.g. an RME ARC controller).
#
# Please note that in my testing RME devices send volume changes at infrequent but random
# times, even when the volume has not been changed intentionally. This is ultimately why
# this setting is off by default.
show_remote_volume_changes: false
}
86 changes: 86 additions & 0 deletions config.sample.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# TotalMix Volume Control sample configuration file.
#
# All the pre-filled values you see in this file are optional and represent the application
# defaults. This JSON file supports comments and trailing commas.
#
# Colors may be specified as regular color names such as "blue", along with hex colors with RGB
# or ARGB components (note that the alpha channel needs to be first if you ant transparency).

[osc]
# The hostname port that TotalMix Volume Control should send to. TotalMixFX listens on
# 0.0.0.0 so the hostname may be any IP address on your network. Generally 127.0.0.1
# (localhost) is recommended. The port should be set to match the "Port incoming"
# setting in TotalMixFX.
outgoing_hostname = "127.0.0.1"
outgoing_port = 7001

# The hostname and port that TotalMix Volume Control should receive from. This should be
# set to match the "Port outgoing" setting in TotalMixFX.
incoming_hostname = "127.0.0.1"
incoming_port = 9001

[volume]
# Whether to use dB units for volume increments and max values. See below for valid
# values when decibels are used.
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%.
# - Decibels: Up to max of 3.0 dB in multiples of 0.5 (e.g. 0.5, 1.0, 1.5, etc.).
increment = 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%.
# - Decibels: Up to max of 1.5 dB in multiples of 0.5 (i.e.. 0.5, 1.0 or 1.5). When using
# decibels, it is generally a good idea to ensure the fine increment is a
# multiple of increment.
fine_increment = 0.01

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

[theme]
# The main widget and tray tooltip background corner rounding and color.
background_rounding = 10.0
background_color = 0xe21e2328

# The TotalMix Volume heading text colors.
heading_totalmix_color = 0xffffff
heading_volume_color = 0xe06464

# The main decibel volume readout text colors.
volume_readout_color_normal = 0xffffff
volume_readout_color_dimmed = 0xffa500

# The horizontal volume bar colors.
volume_bar_background_color = 0x333333
volume_bar_foreground_color_normal = 0x999999
volume_bar_foreground_color_dimmed = 0x996500

# The tray tooltip text message color.
tray_tooltip_message_color = 0xffffff

[interface]
# Scale the interface by a particular factor (e.g. 2.0 will be twice as large).
scaling = 1.0

# The position offset from the top left corner to display the widget at.
position_offset = 40.0

# The amount of time in seconds to display the widget upon hitting the volume keys before
# beginning the fade out animation.
hide_delay = 2.0

# The duration of the fade out animation in seconds.
fade_out_time = 1.0

# Whether to show the indicator any time the volume is changed via the device or any other
# external means (e.g. an RME ARC controller).
#
# Please note that in my testing RME devices send volume changes at infrequent but random
# times, even when the volume has not been changed intentionally. This is ultimately why
# this setting is off by default.
show_remote_volume_changes = false

0 comments on commit 62fffda

Please sign in to comment.