Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

#85 FR: Enhanced app rules

open

Opened by vertigo220 · 3 days ago

vertigo220opened this issueAuthor· 3 days ago

Sign in to comment.

Linked pull requests

No linked pull requests yet.

I use Element (Matrix) and it's poorly designed with one volume for everything, which means I have to keep it turned way down so chat notifications and voice call ringing aren't heart-attack-inducing loud. Unfortunately, this means that it can be too quiet for the actual voice calls, especially when using it to communicate while playing a game. I have a rule set to adjust its volume, because, again, it's poorly designed with respect to sounds and volume, and every update causes it to reset to max volume without a rule. What would be helpful would be to have more advanced options in the rules. Honestly, I doubt many would find it useful, but it seems it shouldn't require much complexity, as it seems it would require little more than nesting an app rule within an app rule.

For example, this is what I'd like to accomplish:

  1. Auto-set Element to x% (already done with app rule)
  2. Auto-set Element to y% if an a specified app is detected*
  3. Auto-set Element to x% once no specified app is detected

*This could be accomplished through a modified app rule, either within the first or separate with an option to link it to the first. In my case, the app rule would be any app within a path, e.g. my games directory. I already have a rule for that, to auto-set games to a low volume, so either I could use an added option within that rule to modify the Element rule, or I could make an identical rule within the Element rule. Either way, when an app matching that rule (i.e. a game) is running and therefore present as an audio source, BT would auto-adjust Element to y% volume. Then when the last app that matches that (sub-)rule closes, so BT sees there are none left, it auto-adjusts Element back to x%.

In addition to being able to set it to y%, an option to be able to set it to a certain % higher than the modifying app (e.g. 15%, game is at 5%, Element is set to 20%) would be nice.