Skip to content

Instantly share code, notes, and snippets.

@tobynet
Created December 9, 2017 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobynet/fbaaa40a265aec2b561ffe2a39f3dd54 to your computer and use it in GitHub Desktop.
Save tobynet/fbaaa40a265aec2b561ffe2a39f3dd54 to your computer and use it in GitHub Desktop.
Watch your code for keymaps and compile qmk firmware with inotifywait command.
#!/bin/env bash
# ref. https://github.com/rvoicilas/inotify-tools/wiki#inotifywait
# ref. inotifywait --help
cd qmk_firmware
while inotifywait --recursive --event modify \
keyboards/lets_split/keymaps/j3/ ; do
make lets_split/rev2:j3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment