Skip to content

feat: Optional display microphone name text in mode indicator #1890

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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

trillium
Copy link
Contributor

@trillium trillium commented May 28, 2025

I tend to switch between my computer's onboard mic and a wireless mic fairly often, having text up inside the indicator helps me know which mic is active.

Optional display of microphone name substring in the mode indictor.

Would this be useful to others?

Looks like this:

MacBook Pro Microphone - Command mode
image
RØDE Connect Stream - Dictation Mode
image
None -
image

Changes

  • Add on_draw_text to render microphone name initials inside the mode indicator
  • Show active microphone's first two letters as overlay text
  • Use configurable text color for microphone label
  • Default to not show text

trillium and others added 2 commits May 27, 2025 22:12
- Add on_draw_text to render microphone name initials inside the mode indicator
- Show active microphone's first two letters as overlay text
- Use configurable text color for microphone label
- Default to not show text
@NonsenseRemedy
Copy link
Contributor

Yes, please, this would make my life easier! I often wind up using the mouse to access the dropdown microphone menu to try to figure out why commands aren't registering as expected.

(I've often wished that "microphone show" had a way to indicate which one is currently active, and this provides an alternative to that)

@NonsenseRemedy
Copy link
Contributor

(And if community decides not to merge this, I'll just bring your changes into my branch. Thank you so much for working on this, and posting a PR!)

@trillium trillium force-pushed the microphone_text_in_mode_indicator branch from 90ed7d1 to b17c08e Compare June 6, 2025 17:14
@AndreasArvidsson
Copy link
Collaborator

Looking good. I left a few suggestions to clean it up a bit :)

@trillium
Copy link
Contributor Author

trillium commented Jun 7, 2025

Thanks for that, committed your suggestions @AndreasArvidsson :)

@trillium
Copy link
Contributor Author

trillium commented Jun 7, 2025

Any idea why it might initialize as grey on save?

image

It goes back to whatever other color mode as soon as I change windows

This effects the behavior very little, just an observation that I think was present before adding text to the mode indicator

@AndreasArvidsson
Copy link
Collaborator

Any idea why it might initialize as grey on save?
image

It goes back to whatever other color mode as soon as I change windows

This effects the behavior very little, just an observation that I think was present before adding text to the mode indicator

Probably because all the default colors are specified in a Talon file so when you save the python file the settings gets reset to wherever default is specified in the python file. Just my guest though.

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.

4 participants