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

sinks and sources can be changed simultaneously #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

herchu
Copy link

@herchu herchu commented Mar 12, 2015

Fantastic tool! You advertise it as "switch the current sound input and output [...] with just two clicks". I normally switch from microphone+speakers to headphones+headphones_microphone, so "2 clicks" to take a skype call is sometimes too much: "1 click" is much less! :-)

What I propose in this fork is that the indicator-sound-switcher auto-selects the corresponding/related sink or source when you click any source or sink. I am leaving this behavior as default, though I also added a menu item to disable this functionality.

Under the hood, it uses the long sink/source name to identify which sinks and sources are from the same "device" (informally speaking), for example from my Plantronics headset:

+ Source[14] addition: 'alsa_input.usb-Plantronics_Wireless_Audio_Plantronics_Wireless_Audio-00-Audio.analog-mono'
...
+ Sink[7] addition: 'alsa_output.usb-Plantronics_Wireless_Audio_Plantronics_Wireless_Audio-00-Audio.analog-stereo'

Here, "usb-Plantronics_Wireless_Audio_Plantronics_Wireless_Audio-00-Audio" is the middle part of both the input and output, and shows they come from the same (informally speaking) "device". The new menu looks like:
menu_746

which is exactly the state when I click either of the Plantronics options -- the other one is selected automatically.

The code modifications are not much. Functionality does not change too much either; so it is easy to test the code. Looking forward to seeing it bundled in the a new .deb in your PPA!

…nd output on the same device; new menu option added
@Mentis
Copy link

Mentis commented Apr 26, 2015

Nice feature!

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

2 participants