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

Triggered by mouse? #18

Open
sjonez opened this issue Sep 12, 2018 · 2 comments
Open

Triggered by mouse? #18

sjonez opened this issue Sep 12, 2018 · 2 comments

Comments

@sjonez
Copy link

sjonez commented Sep 12, 2018

Great little tool for my MBP for correcting the layout of my USB keyboard when it's plugged in, however I also have a logitech USB mouse and autokbisw also seems to be assigning a keyboard layout to that whenever I click!

Here's a log of my typing on both my keyboards and clicking my mouse:

starting with useLocation:false - verbosity:1
set input source to <TSMInputSource 0x7f9f35003740> KB Layout: British - PC (id=250) for keyboard Optional(Dell USB Keyboard)-[Optional(16700)-Optional(8195)-Optional(Dell)-nil]
set input source to <TSMInputSource 0x7f9f35002fa0> KB Layout: British (id=2) for keyboard Optional(Apple Internal Keyboard / Trackpad)-[Optional(1452)-Optional(635)-Optional(Apple Inc.)-Optional(FM783050239J3VYAX+RCP)]
set input source to <TSMInputSource 0x7f9f35003740> KB Layout: British - PC (id=250) for keyboard Optional(Dell USB Keyboard)-[Optional(16700)-Optional(8195)-Optional(Dell)-nil]
set input source to <TSMInputSource 0x7f9f35003740> KB Layout: British - PC (id=250) for keyboard Optional(Gaming Mouse G402)-[Optional(1133)-Optional(49278)-Optional(Logitech)-Optional(6D93279B5255)]

Is there any way to exclude the mouse from having its own layout?

@sjonez
Copy link
Author

sjonez commented Sep 12, 2018

it seems the Logitech G402 mouse is being seen by OSX as also being a keyboard (perhaps due to the additional buttons?) so this is not so much a bug in autokbisw, but it would be good if I could exclude/ignore it.

@jeantil
Copy link
Owner

jeantil commented Oct 16, 2018

hello, sorry I haven't been able to come back to this.

There is no way to exclude the mouse if it reports itself as a keyboard at this time. I have thought about this a bit and I am unsure how to proceed.

The easiest option would be to add a repeatable -e/--exclude command line parameter allowing to specify inputsource id(s) to be excluded from the layout management. what do you think ?

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

No branches or pull requests

2 participants