Ability to set a default keyboard on startup #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rather than manually pressing a key each time you start the script to identify the keyboard, this will attempt to look for a config.txt file, containing a substring belonging to the macro keyboard device instance path.
If the config file contains a value, it will automatically set the keyboard to the one which contains the substring. If no config file is found, it will prompt you to press a key on the macros keyboard, and then print out all detected keyboards.
On the line labelled MACROS, you can copy a portion of the device instance string into a new config.txt file to remember that device. I'm using the vendor ID (
VID_24F0
) as my keyboards are two different brands, however you can use any part of the device instance path.