This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0": "KC_NO", | |
"1": "KC_TRANSPARENT", | |
"2": "KC_POST_FAIL", | |
"3": "KC_UNDEFINED", | |
"4": "KC_A", | |
"5": "KC_B", | |
"6": "KC_C", | |
"7": "KC_D", | |
"8": "KC_E", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Usage: | |
$ python3 HID_X11_converter.py --type X11 <keycode number as shown in `xmodma -pke`> | |
$ python3 HID_X11_converter.py --type HID <keycode number used in QMK> | |
HID keycodes as used in QMK can be found in https://docs.google.com/spreadsheets/d/1TAK6df8bObeswn8CnxIGgZJB_NYON_p8GReMfZ2O-sE/edit#gid=0. | |
Look for the "Basic Keycodes" sheet and don't forget to convert from hexadecimal to decimal notation when using this tool. | |
An enum starts on 0 unless specified otherwise and the integer affected to every item in the enum increases one by one as you go down the enum, unless a specific integer is assigned to an enum item. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef qmk | |
_qmk_compile(){ | |
_arguments \ | |
'-h[Print help text.]' \ | |
'--help[Print help text.]' \ | |
"-n[Don't actually build, just show the make command to be run.]::_qmk_compile" \ | |
"--dry-run[Don't actually build, just show the make command to be run.]::_qmk_compile" \ | |
'-km[The keymap to build a firmware for. Ignored when a configurator export is supplied.]::_qmk_compile' \ | |
'--keymap[The keymap to build a firmware for. Ignored when a configurator export is supplied.]::_qmk_compile' \ |