Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Force Selected Profile option #1120

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Vilhjalmr26
Copy link

Add Force Selected Profile option, which causes SoundSwitch to behave as if the current profile has the "Force Profile" trigger enabled. However, can still use other trigger methods to change profiles freely. Effectively allows user to switch between defined profiles, but keeps Windows, or other programs from changing the devices.

I made this mod as I have a monitor with a speaker in it that when it wakes up, windows auto-switches to (regardless of default). Using the Force Profile Trigger fixes this, however I have 2 different profiles that I like to use depending on what I am doing. This solution allows me to use my profiles freely, but lock down any other change to the system.

The only annoyance I have found, that will be a bit more involved for me to solve, is if a profile is selected, and some part of it can't be applied (say missing microphone) you will get the error for that every time the profile is applied. It still functions correctly, but could be a nuisance.

No attachment to the location of the setting in the GUI. Just wanted a quick and easy edit option. 100% open to moving it.

… as if the current profile has the "Force Profile" trigger enabled. However, can still use other trigger methods to change profiles freely. Effectively allows user to switch between defined profiles, but keeps Windows, or other programs from changing the devices.
@Vilhjalmr26
Copy link
Author

Not sure how to get the build status in there. Sorry, fairly new to using github as more than just svn type storage, Anyone able to help?

@Belphemur
Copy link
Owner

It's a manual approval to run the GitHub action :)

I have to think about this, I admit, I'm not sold on the idea or the impact this has when you also have a "forceProfile" trigger. It conflicts with each other.

@Vilhjalmr26
Copy link
Author

I understand the conflict with the force profile trigger. I thought that would do the trick for me, but it is a limit of 1 profile that can have it. So I didn't want to have to go into the settings and edit 2 profiles to keep the force function every time I swap profiles. If it is not desired to be put mainstream that is fine, I will just make local edits and rebuild on my side :D. I definitely understand avoiding feature creep for one persons desires lol.

@Vilhjalmr26
Copy link
Author

If desired, I could also look at adding the feature as another trigger type, or a way of having multiple force trigger profiles. Obviously that would be a more in depth change, so I would have to spend more time looking at how things work. If there is another way you would like to see it approached, I am willing to work on it.

@Belphemur
Copy link
Owner

Actually, we could simply make the ForceProfile not being limited to only one, more like an "Allow only" instead of a Force profile feature.

@Belphemur
Copy link
Owner

Actually, we could simply make the ForceProfile not being limited to only one, more like an "Allow only" instead of a Force profile feature. And have it remember the latest switched profile.

We'd have to update the translation, but this would fit the needs you have and make it a better feature :)

@felipecrs
Copy link

felipecrs commented Mar 26, 2023

How about this for being a global setting like:

Do not allow other applications to change the default devices: when enabled, SoundSwitch will detect any change to default sound devices, and revert back to the previously active default devices in SoundSwitch, unless the device change was triggered by SoundSwitch itself.

PS: I find it useful

@Vilhjalmr26
Copy link
Author

Vilhjalmr26 commented Mar 26, 2023 via email

@felipecrs
Copy link

@Belphemur WDYT about my suggestion above?

@DoctorKomodo
Copy link

DoctorKomodo commented Apr 9, 2024

Just want to say I've been looking for this exact feature for so long, as I'd like to switch between two default devices and still prevent Windows from changing them behind my back. Have actually built my own version of SoundSwitch right now just to get this change.

So huge +1 from me for getting this into the mainline in some form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants