diff --git a/config.yaml b/config.yaml index d8092d5a..2713963b 100644 --- a/config.yaml +++ b/config.yaml @@ -7,21 +7,19 @@ # windows only - you can use 'system' to control the "system sounds" volume # important: slider indexes start at 0, regardless of which analog pins you're using! slider_mapping: - 0: master - 1: chrome.exe - 2: spotify.exe + 0: spotify + 1: discord + 2: 3: - - pathofexile_x64.exe - - rocketleague.exe - 4: discord.exe + 4: "PipeWire ALSA [firefox-esr]" # set this to true if you want the controls inverted (i.e. top is 0%, bottom is 100%) invert_sliders: false # settings for connecting to the arduino board -com_port: COM4 +com_port: /dev/ttyUSB0 baud_rate: 9600 # adjust the amount of signal noise reduction depending on your hardware quality # supported values are "low" (excellent hardware), "default" (regular hardware) or "high" (bad, noisy hardware) -noise_reduction: default +noise_reduction: low diff --git a/pkg/deej/session_finder_linux.go b/pkg/deej/session_finder_linux.go index 498bbb84..84393ad6 100644 --- a/pkg/deej/session_finder_linux.go +++ b/pkg/deej/session_finder_linux.go @@ -130,7 +130,13 @@ func (sf *paSessionFinder) enumerateAndAddSessions(sessions *[]Session) error { for _, info := range reply { name, ok := info.Properties["application.process.binary"] - + + // Handle apps running indirectly (like ALSA over PipeWire) that don't provide a binary name + if !ok { + name, ok = info.Properties["application.name"] + } + // ------------ + if !ok { sf.logger.Warnw("Failed to get sink input's process name", "sinkInputIndex", info.SinkInputIndex) diff --git a/pkg/deej/util/util.go b/pkg/deej/util/util.go index dac5596d..907afc8d 100644 --- a/pkg/deej/util/util.go +++ b/pkg/deej/util/util.go @@ -116,8 +116,8 @@ func SignificantlyDifferent(old float32, new float32, noiseReductionLevel string return true } - // values are close enough to not warrant any action - return false + // fix: (return false -> return true) although values are very close, invoke the action nevertheless + return true } // a helper to make sure volume snaps correctly to 0 and 100, where appropriate