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

Keyboard devices without the string "keyboard" in them are not recognized #3

Open
hartkes opened this issue Jul 4, 2016 · 1 comment

Comments

@hartkes
Copy link

hartkes commented Jul 4, 2016

Several of my keyboards do not have the string "keyboard" in their device names. Some have shortened forms (like "KB"), some just have the manufacturer and product name, and a PS2-to-USB adapter identifies itself as a "Barcode reader". The function identify_local_keyboard then fails. I worked around this issue by hard coding my device's name to be acceptable, but I think a better solution would be to allow a command line parameter to specify the device number of the desired keyboard. The device number can be found using "xinput list".

Thanks for writing and releasing this program! It has been a life saver since I badly sprained my right thumb.
Stephen

@kbingham
Copy link
Owner

Yes, this sounds like a good idea. basic string matching is a bit fragile. Hope your thumb is feeling better now!

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