Skip to content

Iris custom keymap plus tooling to convert config.qmk.fm's output to .c

Notifications You must be signed in to change notification settings

giuliano108/iris-keymap

Repository files navigation

Custom keymap for an Iris Keyboard

  • Start with a qmk_firmware checkout in ../qmk_firmware

  • Build the docker container (stolen from qmk_compiler):

      docker build -t qmk_compiler .
    
  • Export a .json keymap from https://config.qmk.fm

  • Convert it to a base keymap.c with:

      perl -pi -e 's/ANY\((LOWER|RAISE|ADJUST)\)/$1/' iris_rev2_layout_mine.json
      docker run \
         -v $PWD/iris_rev2_layout_mine.json:/qmk_compiler_worker/iris_rev2_layout_mine.json \
         -v $PWD/json2keymap.py:/qmk_compiler_worker/json2keymap.py \
         qmk_compiler \
         ./json2keymap.py > keymap.c.converted
    
  • The fixkeymap.rb script makes keymap.c.converted look more like the default Iris keymap found in ../qmk_firmware:

      ./fixkeymap.rb > keymap.c
    
  • Copy the final keymap.c over to the qmk_firmware source tree:

      cp -va ../qmk_firmware/keyboards/iris/keymaps/default ../qmk_firmware/keyboards/iris/keymaps/mine
      cp -v keymap.c  ../qmk_firmware/keyboards/iris/keymaps/mine
    
  • Build:

      cd ../qmk_firmware
      make iris/rev2:mine
    

About

Iris custom keymap plus tooling to convert config.qmk.fm's output to .c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published