Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion pkg/deej/session_finder_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pkg/deej/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down